Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
86605 sh25_zhangyy 求完数 C++ Accepted 0 MS 244 KB 376 2026-04-03 15:46:35

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main( ) { int h,s=0,t=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; t++; } s=0; } cout<<"*"<<t; return 0; }


Judgement Protocol: