Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
20766 LeoWang [在线测评解答教程] 求和 C++ Accepted 1 MS 248 KB 126 2023-06-20 08:07:30

Tests(10/10):


#include <iostream> using namespace std; int main() { int n; while(cin>>n){ cout<<n*(n+1)/2<<" "; } return 0; }


Judgement Protocol: