Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
126753 12 计算数列和 C++ Accepted 100 0 MS 248 KB 150 2024-01-24 17:04:00

Tests(4/4):


#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; long long ans = n*(n+1)*(n+n+1)/6; cout<<ans<<endl; return 0; }


Judgement Protocol: