結果

問題 No.354 メルセンヌ素数
ユーザー g-tetsuyag-tetsuya
提出日時 2016-05-22 19:31:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 106 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 18,080 KB
最終ジャッジ日時 2024-04-16 06:50:06
合計ジャッジ時間 3,138 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
16,128 KB
testcase_01 AC 33 ms
10,752 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 30 ms
10,880 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 44 ms
10,880 KB
testcase_07 AC 214 ms
10,880 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

p = int(input())

n = pow(2, p) - 1

c = 0

while n > 0:
    c += 1
    n = n  >> 1

print(c)
0