Please enter nnn, calculate the sum of natural numbers from 111 to nnn then output it.
The line of input contains one integer,which is the number nnn.
one integer,which is the sum of 1+2+3+……+n−1+n1 + 2 + 3 + …… + n-1 + n1+2+3+……+n−1+n.
10
55
100
5050
For 100%100\%100% testcases, n≤105 n\leq10^5n≤105.
注册一个 9minute 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 9minute 通用账户