CF171C.A Piece of Cake
普及/提高-
通过率:0%
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.
输入格式
The only line of input contains a sequence of integers a0,a1,... ( 1<=a0<=100 , 0<=ai<=1000 for i>=1 ).
输出格式
Output a single integer.
输入输出样例
输入#1
4 1 2 3 4
输出#1
30