CF171C.A Piece of Cake
普及+/提高
通过率:0%
时间限制:2.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
How to make a cake you'll never eat.
Ingredients.
- 2 carrots
- 0 calories
- 100 g chocolate spread
- 1 pack of flour
- 1 egg
Method.
- Put calories into the mixing bowl.
- Take carrots from refrigerator.
- Chop carrots.
- Take chocolate spread from refrigerator.
- Put chocolate spread into the mixing bowl.
- Combine pack of flour into the mixing bowl.
- Fold chocolate spread into the mixing bowl.
- Add chocolate spread into the mixing bowl.
- Put pack of flour into the mixing bowl.
- Add egg into the mixing bowl.
- Fold pack of flour into the mixing bowl.
- Chop carrots until choped.
- Pour contents of the mixing bowl into the baking dish.
Serves 1.
如何制作一个你永远也不会吃的蛋糕。
原料:
- 2 根胡萝卜
- 0 卡路里
- 100 克巧克力酱
- 1 包面粉
- 1 个鸡蛋
制作方法:
- 将卡路里放入搅拌碗中。
- 从冰箱中取出胡萝卜。
- 切碎胡萝卜。
- 从冰箱中取出巧克力酱。
- 将巧克力酱放入搅拌碗中。
- 将整包面粉混入搅拌碗中。
- 将巧克力酱折叠入搅拌碗中。
- 向搅拌碗中加入巧克力酱。
- 将整包面粉放入搅拌碗中。
- 向搅拌碗中加入鸡蛋。
- 将整包面粉折叠入搅拌碗中。
- 切碎胡萝卜,直至切碎完成。
- 将搅拌碗中的全部内容物倒入烤盘中。
可供 1 人食用。
输入格式
The only line of input contains a sequence of integers _a_0, _a_1, ... (1 ≤ _a_0 ≤ 100, 0 ≤ a__i ≤ 1000 for i ≥ 1).
输入仅有一行,包含一个整数序列 a0,a1,…(其中 1≤a0≤100,且对所有 i≥1 有 0≤ai≤1000)。
输出格式
Output a single integer.
输出一个整数。
输入输出样例
输入#1
4 1 2 3 4
输出#1
30
输入解题思路,AI测评打分。不知道怎么写?