Type: Default 1000ms 256MiB

购买笔记本

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.

题目描述

某网店促销活动,笔记本1的单价是3元,笔记本2的单价是5元,如果两种笔记本同时购买,价格可以打八折。

计算一下,购买笔记本1和笔记本2各n本,可以优惠多少钱?(以元为单位,精确到小数点后2位。)

格式

输入

输入笔记本数量n。

输出

输出节省的费用,保留两位小数。

样例

输入

10

输出

16.00

航校十周年第一届 PYTHON 挑战赛

Not Claimed
Status
Done
Problem
10
Open Since
2026-10-30 0:00
Deadline
2026-11-7 23:59
Extension
24 hour(s)