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

Tests(0/10):


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


测评信息: