| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 19580 | 张熙媛 | 求完全数的个数 | C++ | Time Limit Exceeded | 20 | 1000 MS | 252 KB | 217 | 2021-05-16 20:05:15 |
#include<bits/stdc++.h> using namespace std; int n,ans,a; int main(){ cin>>n; for(int i=2;i<=n;i++){ a=0; for(int j=1;j<i;j++){ if(i%j==0) a+=j; } if(a==i) ans++; } cout<<ans; return 0; }