結果

問題 No.2795 Perfect Number
ユーザー lam6er
提出日時 2025-03-20 18:42:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 82,768 KB
実行使用メモリ 53,828 KB
最終ジャッジ日時 2025-03-20 18:42:43
合計ジャッジ時間 2,557 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

perfect_numbers = {
    6, 28, 496, 8128, 33550336,
    8589869056, 137438691328
}

n = int(input())
print("Yes" if n in perfect_numbers else "No")
0