Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
52479 | 王皓暄 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 0 MS | 244 KB | 150 | 2024-10-06 22:17:43 |
#include<bits/stdc++.h> using namespace std; int main() { int n,w=0; cin>>n; for(int i=1;i<=n;i++) { w+=i; } cout<<w; return 0; }