Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
3796 | slx | [在线测评解答教程] 求和 | C++ | Accepted | 1 MS | 256 KB | 127 | 2023-01-11 08:56:00 |
#include <iostream> using namespace std; int main(){ int n; while(cin>>n){ cout<<n*(n+1)/2<<" "; } return 0; }