結果

問題 No.354 メルセンヌ素数
ユーザー tarotaro789tarotaro789
提出日時 2017-03-04 22:11:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 891 ms / 1,000 ms
コード長 99 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 171,484 KB
最終ジャッジ日時 2024-04-10 00:59:42
合計ジャッジ時間 3,568 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 27 ms
10,496 KB
testcase_02 AC 25 ms
10,624 KB
testcase_03 AC 26 ms
10,496 KB
testcase_04 AC 26 ms
10,496 KB
testcase_05 AC 25 ms
10,496 KB
testcase_06 AC 26 ms
10,624 KB
testcase_07 AC 25 ms
10,880 KB
testcase_08 AC 33 ms
12,288 KB
testcase_09 AC 56 ms
16,844 KB
testcase_10 AC 253 ms
54,288 KB
testcase_11 AC 404 ms
78,512 KB
testcase_12 AC 834 ms
165,128 KB
testcase_13 AC 891 ms
171,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p=int(input())
men=2**p-1
sum=0
men=bin(men).replace("b","").replace("0","")
print(men.count("1"))
0