[R8A]买糖果
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.
时空限制
1S/512M
题目描述
老师买了三种糖果,第一种糖果每颗 元,买了 颗;第二种糖果每颗 元,买了 颗;第三种糖果每颗 元,买了 颗。
请算出老师一共花了多少钱。
格式
输入格式
第一行包含三个整数 ,分别表示三种糖果的价格。
第二行包含三个整数 ,分别表示三种糖果的购买数量。
输出格式
输出一个整数表示老师一共花了多少钱。
样例
样例输入 #1
3 2 1
4 5 6
样例输出 #1
28
样例输入 #2
100 100 100
100 100 100
样例输出 #2
30000
数据规模
对于 的数据,,。
代码源挑战赛 Round 8
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-4-18 20:00
- End at
- 2025-4-18 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 515