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