-->
当前位置:首页 > 题库

PROGRAMMING:Cycle statistics

Luz5年前 (2021-05-10)题库447
In the corner of the wall is a pile of exactly the same cube blocks. Counting from top to bottom, the first layer is one block, the second layer is three blocks, and the third layer is six blocks   Because the blocks are stacked in a regular way, you can calculate the number of all the blocks as long as you know the number of layers.
![](~/ 411)
###Input format:
There is only one integer   n  , Represents the number of layers of this pile of small wood blocks, known as 1 < = n < = 100  。

### Output format:
There is only one integer that represents the total number of small pieces of wood.
###Input example:
```in
five
```
###Output example:
```out
thirty-five
```






answer:If there is no answer, please comment