結果

問題 No.354 メルセンヌ素数
ユーザー DexctersuDexctersu
提出日時 2017-12-10 11:14:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 84 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 674,292 KB
最終ジャッジ日時 2023-08-20 09:50:34
合計ジャッジ時間 5,247 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,180 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 AC 16 ms
7,892 KB
testcase_03 AC 16 ms
7,836 KB
testcase_04 AC 15 ms
7,836 KB
testcase_05 AC 16 ms
7,888 KB
testcase_06 AC 17 ms
8,068 KB
testcase_07 AC 18 ms
8,752 KB
testcase_08 AC 34 ms
14,852 KB
testcase_09 AC 79 ms
34,416 KB
testcase_10 AC 532 ms
195,104 KB
testcase_11 AC 900 ms
298,548 KB
testcase_12 MLE -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

p=int(input())
ans=(2**p)-1
ans_2=list('{0:b}'.format(ans))
print(ans_2.count("1"))
0