| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75399 | sh25_shenpy | 求正整数2和n之间的完全数 | C++ | Accepted | 0 MS | 240 KB | 321 | 2025-12-06 13:20:55 |
#include <bits/stdc++.h> using namespace std; int main( ) { int h,s=0; cin>>h; for(int i=6;i<h;i++){ for(int w=1;w<=1.0*i/2;w++){ if(i%w==0){ s+=w; } } if(s==i){ cout<<s<<endl; } s=0; } return 0; }