Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
9208 D班-陈颖钧 完数判断 C++ 解答错误 0 0 MS 264 KB 253 2025-04-08 21:36:36

Tests(0/10):


#include<bits/stdc++.h> using namespace std; int n,b=1,i,j; int main(){ cin>>n; for(j=2;j<=n;j++){ if(i%j==0){ b+=j; } } if(b==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


测评信息: