結果

問題 No.354 メルセンヌ素数
ユーザー kyo1kyo1
提出日時 2020-05-04 12:16:11
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 57 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 11,192 KB
実行使用メモリ 200,328 KB
最終ジャッジ日時 2023-09-06 06:21:58
合計ジャッジ時間 7,231 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,292 KB
testcase_01 AC 81 ms
15,152 KB
testcase_02 AC 79 ms
15,088 KB
testcase_03 AC 80 ms
15,056 KB
testcase_04 AC 81 ms
15,344 KB
testcase_05 AC 83 ms
15,452 KB
testcase_06 AC 86 ms
16,272 KB
testcase_07 AC 109 ms
20,172 KB
testcase_08 AC 324 ms
61,292 KB
testcase_09 TLE -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts (2.pow(gets.to_i) - 1).to_s(2).chars.map(&:to_i).sum
0