結果

問題 No.354 メルセンヌ素数
ユーザー 0918nobita0918nobita
提出日時 2016-04-03 17:43:07
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 43 bytes
コンパイル時間 33 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 38,728 KB
最終ジャッジ日時 2024-04-10 10:47:08
合計ジャッジ時間 1,940 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
12,160 KB
testcase_01 AC 79 ms
12,288 KB
testcase_02 AC 77 ms
12,160 KB
testcase_03 AC 76 ms
12,160 KB
testcase_04 AC 75 ms
12,288 KB
testcase_05 AC 77 ms
12,032 KB
testcase_06 AC 76 ms
12,160 KB
testcase_07 AC 78 ms
12,160 KB
testcase_08 AC 85 ms
12,928 KB
testcase_09 AC 89 ms
16,640 KB
testcase_10 AC 179 ms
38,728 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p = gets.to_i
puts (2**p-1).to_s(2).length
0