結果

問題 No.354 メルセンヌ素数
ユーザー motor_radialmotor_radial
提出日時 2019-08-15 06:49:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 672 ms / 1,000 ms
コード長 53 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 11,712 KB
実行使用メモリ 95,308 KB
最終ジャッジ日時 2023-10-19 18:29:55
合計ジャッジ時間 3,081 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,052 KB
testcase_01 AC 28 ms
10,052 KB
testcase_02 AC 29 ms
10,052 KB
testcase_03 AC 28 ms
10,052 KB
testcase_04 AC 28 ms
10,052 KB
testcase_05 AC 28 ms
10,052 KB
testcase_06 AC 28 ms
10,072 KB
testcase_07 AC 29 ms
10,136 KB
testcase_08 AC 35 ms
10,888 KB
testcase_09 AC 52 ms
13,244 KB
testcase_10 AC 201 ms
33,260 KB
testcase_11 AC 334 ms
45,976 KB
testcase_12 AC 645 ms
92,012 KB
testcase_13 AC 672 ms
95,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P=int(input())
N=bin(2**P-1)
print(str(N).count("1"))
0