結果

問題 No.354 メルセンヌ素数
ユーザー numberfromnumberfrom
提出日時 2020-05-19 21:40:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 67 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 699,472 KB
最終ジャッジ日時 2024-04-09 22:28:23
合計ジャッジ時間 4,252 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,624 KB
testcase_01 AC 24 ms
10,624 KB
testcase_02 AC 24 ms
10,624 KB
testcase_03 AC 25 ms
10,752 KB
testcase_04 AC 24 ms
10,624 KB
testcase_05 AC 24 ms
10,624 KB
testcase_06 AC 24 ms
10,880 KB
testcase_07 AC 27 ms
11,520 KB
testcase_08 AC 36 ms
17,572 KB
testcase_09 AC 63 ms
37,212 KB
testcase_10 AC 306 ms
197,980 KB
testcase_11 AC 469 ms
301,304 KB
testcase_12 TLE -
testcase_13 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

p = int(input())

num = 2 ** p - 1
print(list(bin(num)).count('1'))
0