Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem C: 累加器-计算n以内的和练习
Problem C: 累加器-计算n以内的和练习
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
1031
Solved:
726
[
Status
] [
Submit
] [Creator:
]
Description
输入一个正整数n,计算1+2+3+...+n的和
Input
一个正整数n
Output
n以内的和
Sample Input
Copy
10
Sample Output
Copy
55