結果

問題 No.354 メルセンヌ素数
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-06 23:05:23
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 119 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 289,080 KB
最終ジャッジ日時 2024-09-22 02:13:04
合計ジャッジ時間 6,451 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11 TLE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

p = int(input())
sosuu = pow(2, p) - 1

count = 0
for x in bin(sosuu):
    if x == '1':
        count += 1
print(count)
0