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.

  1. Put calories into the mixing bowl.
  2. Take carrots from refrigerator.
  3. Chop carrots.
  4. Take chocolate spread from refrigerator.
  5. Put chocolate spread into the mixing bowl.
  6. Combine pack of flour into the mixing bowl.
  7. Fold chocolate spread into the mixing bowl.
  8. Add chocolate spread into the mixing bowl.
  9. Put pack of flour into the mixing bowl.
  10. Add egg into the mixing bowl.
  11. Fold pack of flour into the mixing bowl.
  12. Chop carrots until choped.
  13. Pour contents of the mixing bowl into the baking dish.

Serves 1.

如何制作一个你永远也不会吃的蛋糕。

原料:

  • 2 根胡萝卜
  • 0 卡路里
  • 100 克巧克力酱
  • 1 包面粉
  • 1 个鸡蛋

制作方法:

  1. 将卡路里放入搅拌碗中。
  2. 从冰箱中取出胡萝卜。
  3. 切碎胡萝卜。
  4. 从冰箱中取出巧克力酱。
  5. 将巧克力酱放入搅拌碗中。
  6. 将整包面粉混入搅拌碗中。
  7. 将巧克力酱折叠入搅拌碗中。
  8. 向搅拌碗中加入巧克力酱。
  9. 将整包面粉放入搅拌碗中。
  10. 向搅拌碗中加入鸡蛋。
  11. 将整包面粉折叠入搅拌碗中。
  12. 切碎胡萝卜,直至切碎完成。
  13. 将搅拌碗中的全部内容物倒入烤盘中。

可供 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, …a_0,\,a_1,\,\dots(其中 1≤a0≤1001\le a_0\le 100,且对所有 i≥1i\ge 1 有 0≤ai≤10000\le a_i\le 1000)。

输出格式

Output a single integer.

输出一个整数。

输入输出样例

  • 输入#1

    4 1 2 3 4

    输出#1

    30

输入解题思路,AI测评打分。不知道怎么写?

首页