4424: 【Python基础】1到n求和
Memory Limit:128 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:1421
Solved:821
Description
输入一个整数n,求1+2+3+...+n的和
```flow
s=>start: 开始
t=>end: 结束
a=>inputoutput: 输入整数n
b=>operation: 求和赋初值:s = 0
c=>condition: i在序列1到n中|hide
d=>operation: 累加:s = s + i
f=>inputoutput: 输出和s
s->a->b->c(yes, right)->d(top)->c(no)->f->t
```
Sample Input Copy
5
Sample Output Copy
15