Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
39088 Songgy_King [在线测评解答教程] 求和 C++ Accepted 1 MS 248 KB 228 2024-01-30 17:50:52

Tests(10/10):


#include<iostream> using namespace std; int main() { int n,i,sum; while (cin >> n) { for(i=1;i<=n;i++){ sum+=i; } cout<<sum<<endl; sum=0; } return 0; }


Judgement Protocol: