結果

問題 No.354 メルセンヌ素数
ユーザー Cyberdog-しばいぬ-Cyberdog-しばいぬ-
提出日時 2019-02-04 16:05:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 116 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2023-08-26 19:36:52
合計ジャッジ時間 4,728 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
12,160 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 14 ms
7,776 KB
testcase_03 AC 15 ms
7,736 KB
testcase_04 AC 15 ms
7,788 KB
testcase_05 AC 16 ms
7,820 KB
testcase_06 AC 21 ms
7,812 KB
testcase_07 AC 46 ms
7,736 KB
testcase_08 AC 281 ms
9,024 KB
testcase_09 TLE -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

p = int(input())
mp = 2**p - 1
bmp = bin(mp)
ans = 0
for i in range(2, len(bmp)):
    ans += int(bmp[i])
print(ans)
0