結果
問題 |
No.2795 Perfect Number
|
ユーザー |
|
提出日時 | 2024-06-28 21:44:16 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 54,004 KB |
最終ジャッジ日時 | 2024-06-28 21:44:22 |
合計ジャッジ時間 | 2,370 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 35 |
ソースコード
# List of known perfect numbers (the first few) perfect_numbers = {6, 28, 496, 8128, 33550336, 8589869056, 137438691328, 2305843008139952128} def is_perfect_number(N): return N in perfect_numbers # Example usage: N = int(input("Enter a number: ")) # Taking input from the user if is_perfect_number(N): print("Yes") else: print("No")