結果

問題 No.354 メルセンヌ素数
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-06 23:05:23
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 119 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 81,576 KB
実行使用メモリ 290,064 KB
最終ジャッジ日時 2023-10-22 00:50:41
合計ジャッジ時間 6,221 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,352 KB
testcase_01 AC 33 ms
53,352 KB
testcase_02 AC 34 ms
53,352 KB
testcase_03 AC 34 ms
53,352 KB
testcase_04 AC 36 ms
57,356 KB
testcase_05 AC 37 ms
59,404 KB
testcase_06 AC 35 ms
59,404 KB
testcase_07 AC 39 ms
63,500 KB
testcase_08 AC 59 ms
78,968 KB
testcase_09 AC 100 ms
92,704 KB
testcase_10 AC 456 ms
205,316 KB
testcase_11 AC 752 ms
221,564 KB
testcase_12 TLE -
testcase_13 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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