結果

問題 No.104 国道
ユーザー maimai
提出日時 2016-06-25 01:43:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 64 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 15,340 KB
最終ジャッジ日時 2023-08-02 02:05:40
合計ジャッジ時間 2,861 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,048 KB
testcase_01 AC 70 ms
15,116 KB
testcase_02 AC 69 ms
15,304 KB
testcase_03 AC 70 ms
15,292 KB
testcase_04 AC 75 ms
15,096 KB
testcase_05 AC 74 ms
15,244 KB
testcase_06 AC 69 ms
15,340 KB
testcase_07 AC 69 ms
15,048 KB
testcase_08 AC 71 ms
15,144 KB
testcase_09 AC 70 ms
15,152 KB
testcase_10 AC 71 ms
15,240 KB
testcase_11 AC 70 ms
15,168 KB
testcase_12 AC 73 ms
15,028 KB
testcase_13 AC 73 ms
15,120 KB
testcase_14 AC 74 ms
15,152 KB
testcase_15 AC 73 ms
15,256 KB
testcase_16 AC 68 ms
15,072 KB
testcase_17 AC 84 ms
15,028 KB
testcase_18 AC 71 ms
15,140 KB
testcase_19 AC 71 ms
15,148 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p gets.chomp.chars.to_a.inject(1){|s,e|e=="L" ? (s*2) : (s*2+1)}
0