Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86849 丁俊杰 判断完全数 Python3 Accepted 34 MS 3756 KB 135 2024-07-28 16:11:57

Tests(10/10):


Code:

n=int(input()) res=0 for x in range(1,n): if n%x==0: res+=x if res==n: print("YES") else: print("NO")