Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
7102 A班-许锘林 完数判断 C++ 通过 100 97 MS 260 KB 259 2025-03-12 21:41:34

Tests(10/10):


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


测评信息: