結果
問題 | No.2795 Perfect Number |
ユーザー |
|
提出日時 | 2025-01-29 15:25:38 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 82,276 KB |
実行使用メモリ | 67,664 KB |
最終ジャッジ日時 | 2025-01-29 15:25:42 |
合計ジャッジ時間 | 4,168 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 35 |
ソースコード
#入力x = input()#約数判定divisor = []for i in range(1,i):if x % i ==0:divisor.append(i)#完全数判定if sum(divisor) == 2*x:print("Yes")else:print("No")