Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86376 sh25_wangsj 求完数 C++ 通过 0 MS 248 KB 366 2026-04-03 14:30:50

Tests(1/1):


#include <iostream> using namespace std; int main() { int a; int b=0,c=0; cin>>a; for(int i=1;i<=a;i++){ for(int j=1;j<i;j++){ if(i%j==0){ b+=j; } } if(b==i){ cout<<i<<endl; c++; } b=0; } cout<<"*"<<c; return 0; }


测评信息: