結果

問題 No.354 メルセンヌ素数
ユーザー mmmpppmmmppp
提出日時 2017-02-27 13:39:54
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 35 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 47,456 KB
最終ジャッジ日時 2023-09-02 12:40:08
合計ジャッジ時間 2,630 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,292 KB
testcase_01 AC 79 ms
15,164 KB
testcase_02 AC 83 ms
15,160 KB
testcase_03 AC 84 ms
15,156 KB
testcase_04 AC 84 ms
15,368 KB
testcase_05 AC 86 ms
15,344 KB
testcase_06 AC 84 ms
15,360 KB
testcase_07 AC 86 ms
15,644 KB
testcase_08 AC 91 ms
16,980 KB
testcase_09 AC 110 ms
20,352 KB
testcase_10 AC 317 ms
47,456 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p (2**gets.to_i-1).to_s(2).count ?1
0