ACMORE
Vjudge
杭电HDUOJ
杭电HDUOJ
北京大学POJ
Sum Problem
登陆
注册
题目
1001:Sum Problem
题目描述
Hey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).
In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.
输入解释
The input will consist of a series of integers n, one integer per line.
输出解释
For each case, output SUM(n) in one line, followed by a blank line. You may assume the result will be in the range of 32-bit signed integer.
输入样例
1 100
输出样例
1 5050
来自杭电HDUOJ的附加信息
Author
DOOM III
Recommend
该题目是Virtual Judge题目,来自
杭电HDUOJ
源链接:
HDU-1001
最后修改于
2020-10-25 22:41:17 UTC
由爬虫自动更新
共提交
129
次
通过率
48.06
%
时间上限
内存上限
1000/500MS(Java/Others)
65536/32768K(Java/Others)
·
·
·
·
登陆或注册
以提交代码