Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
20005 | 桑迪 | 关灯 | C++ | Accepted | 100 | 0 MS | 248 KB | 184 | 2021-05-27 21:37:27 |
#include<iostream> using namespace std; int main() { int i,n; long long ans=0;//没用long long 30分 cin>>n; for(i=1;i*i<=n;i++) ans+=i*i; cout<<ans; return 0; }