Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8410 D班-罗炜翰 完数判断 C++ 通过 100 93 MS 268 KB 308 2025-03-30 12:19:18

Tests(10/10):


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


测评信息: