結果

問題 No.354 メルセンヌ素数
ユーザー shinjiwebshinjiweb
提出日時 2016-06-22 21:26:54
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 66 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 193,152 KB
最終ジャッジ日時 2024-04-20 00:25:21
合計ジャッジ時間 5,509 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
12,288 KB
testcase_01 AC 75 ms
12,416 KB
testcase_02 AC 73 ms
12,160 KB
testcase_03 AC 75 ms
12,160 KB
testcase_04 AC 73 ms
12,160 KB
testcase_05 AC 77 ms
12,416 KB
testcase_06 AC 83 ms
12,928 KB
testcase_07 AC 103 ms
17,024 KB
testcase_08 AC 290 ms
57,472 KB
testcase_09 AC 960 ms
193,152 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p (2**(gets.to_i)-1).to_i.to_s(2).split("").map(&:to_i).inject(:+)
0