杭电Acm1001解决求和的问题

最后更新于:2022-04-01 09:47:19

~~~ #include <iostream> using namespace std; int main() { unsigned int n; while (cin>>n) { cout<<(n+1)*n/2<<endl<<endl; } return 0; } //没出来结果的注意下整形n的无符号   ~~~
';