1648: 【基础题】连续和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:43
Solved:35
Description
输入正整数n,输出1+2+…+n的值。提示:1+2+3+......+n = (1+n)*n/2
Input
正整数n,1<=n<=10000。
Output
1+2+…+n的值。
Sample Input Copy
3
Sample Output Copy
6