結果

問題 No.2795 Perfect Number
ユーザー detteiuu
提出日時 2024-06-28 21:24:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 82,260 KB
実行使用メモリ 53,220 KB
最終ジャッジ日時 2024-06-28 21:24:34
合計ジャッジ時間 2,678 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = [6, 28, 496, 8128, 33550336, 8589869056, 137438691328, 2305843008139952128, 2658455991569831744654692615953842176]

if N in ans:
    print("Yes")
else:
    print("No")
0