| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 42021 | 董承诺 | 数列求和 | C++ | Accepted | 100 | 0 MS | 256 KB | 195 | 2022-06-21 11:13:41 |
#include<bits/stdc++.h> using namespace std; int a,b[1010],c; int main(){ cin>>a; for(int i=1;i<=a;i++){ b[i]=i*i; } for(int i=1;i<=a;i++){ c+=b[i]; } cout<<c; return 0; }