Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86605 sh25_zhangyy 求完数 C++ 通过 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; }


测评信息: