結果
| 問題 |
No.354 メルセンヌ素数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-04 22:09:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 118 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 61,372 KB |
| 最終ジャッジ日時 | 2024-06-23 02:06:46 |
| 合計ジャッジ時間 | 4,252 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 TLE * 2 -- * 3 |
ソースコード
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)