結果
問題 |
No.354 メルセンヌ素数
|
ユーザー |
![]() |
提出日時 | 2017-11-05 11:53:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 139 bytes |
コンパイル時間 | 102 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 176,700 KB |
最終ジャッジ日時 | 2024-11-24 01:23:30 |
合計ジャッジ時間 | 10,938 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 TLE * 5 |
ソースコード
p = int(input()) all = 2 ** p -1 all = bin(all).strip('0b') result = 0 for e in list(map(int, all)): result += int(e) print(result)