Toggle navigation
HUSTOJ
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Recent
Login
Problem C: 连续和(sum)
Problem C: 连续和(sum)
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1520
Solved:
838
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数
n
,输出
1+2+
…
+
n
的值。
Sample Input
5
Sample Output
15
HINT
提示:目标是解决问题,而不是练习编程。