Problem Description
In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.
Input
The input will consist of a series of integers n, one integer per line
Output
For each case, output SUM(n) in one line, followed by a blank line. You may assume the
ACM sum 求和问题(关于问题中的存储限制)
最新推荐文章于 2023-12-04 11:52:52 发布