Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33070 | Andrew宥杨 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 130 | 2023-12-05 21:08:11 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; while(cin>>a;){ cout<<a*(a+1)/2<<endl; } return 0; }