利用for循环。计算输出1+2+3+...+n1+2+3+...+n1+2+3+...+n的和。
输入nnn。对于100%的数据,1≤n≤1001≤n≤1001≤n≤100。
如题述,之和。
10
55
In following contests:
1.17
2026.2.13
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account