Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
9211 D班-陈颖钧 完数判断 C++ 通过 100 52 MS 264 KB 251 2025-04-08 21:37:56

Tests(10/10):


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


测评信息: