Problem 1247 --Sum Problem

1247: Sum Problem

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $621$ 正确数量 $404$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签
Hey, welcome to ahstu oj.
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. You may assume the result will be in the range of 32-bit signed integer.
1
100
1
5050

推荐代码 查看1247 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] 往事何必追寻 791227 2021-12-05 23:13:29
内存最少[$0 $KB] Scr!pt-B0y 648165 2020-11-06 14:32:30
第一AC AOJ大管家 3817 2016-05-25 14:00:35
第一挑战 AOJ大管家 3815 2016-05-25 13:56:06

赛题来源/所属竞赛 NA N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛