【例3.1】购买笔记本(粤版)
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
某商店笔记本有促销活动,规定购买6本以上(含6本)10本以下(含10本)打九折,购买11本以上(含11本)打八折。给定笔记本单价和购买数量,请问购买总费用。
【输入】
第一行一个整数s,表示购买s本笔记本。
第二行一个实数p,表示笔记本单价是p。
【输出】
输出一行,表示总费用。保留小数点后一位。
100
3.2
256.0
《数据结构班12月第3周》
- Status
- Done
- Problem
- 4
- Open Since
- 2023-12-16 0:00
- Deadline
- 2023-12-24 23:59
- Extension
- 24 hour(s)