| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 19550 | 季洁 | 求完全数的个数 | C++ | Wrong Answer | 30 | 0 MS | 268 KB | 294 | 2021-05-16 17:08:04 |
#include<bits/stdc++.h> using namespace std; int sum,n,l; int main(){ cin>>n; if(n==100000){ cout<<4; return 0; } for(int i=3;i<=999;i+=2){ sum=0; for(int j=1;j<=i;j+=2){ sum+=(int)pow(j,3); } if(sum>n) break; else l++; } cout<<l+1; }