結果

問題 No.354 メルセンヌ素数
ユーザー tarotaro789tarotaro789
提出日時 2017-03-04 22:09:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 118 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 59,592 KB
最終ジャッジ日時 2023-09-05 05:38:52
合計ジャッジ時間 4,421 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
59,592 KB
testcase_01 AC 17 ms
7,808 KB
testcase_02 AC 16 ms
7,996 KB
testcase_03 AC 15 ms
7,844 KB
testcase_04 AC 16 ms
7,984 KB
testcase_05 AC 17 ms
7,880 KB
testcase_06 AC 22 ms
7,820 KB
testcase_07 AC 42 ms
8,444 KB
testcase_08 AC 250 ms
9,804 KB
testcase_09 AC 913 ms
14,292 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

p=int(input())
men=2**p-1
sum=0
men=bin(men).replace("b","").replace("0","")
for i in men:
    sum+=int(i)
print(sum)
0