結果

問題 No.436 ccw
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-01 14:09:40
言語 Ruby
(3.3.0)
結果
MLE  
実行時間 -
コード長 168 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 11,928 KB
実行使用メモリ 703,576 KB
最終ジャッジ日時 2023-10-18 23:59:10
合計ジャッジ時間 7,034 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
20,468 KB
testcase_01 AC 92 ms
16,116 KB
testcase_02 AC 88 ms
16,116 KB
testcase_03 AC 91 ms
16,116 KB
testcase_04 AC 91 ms
16,116 KB
testcase_05 AC 92 ms
16,116 KB
testcase_06 AC 86 ms
16,116 KB
testcase_07 AC 86 ms
16,116 KB
testcase_08 AC 87 ms
16,116 KB
testcase_09 AC 84 ms
16,116 KB
testcase_10 AC 84 ms
16,116 KB
testcase_11 AC 88 ms
16,116 KB
testcase_12 AC 953 ms
123,292 KB
testcase_13 AC 88 ms
16,116 KB
testcase_14 AC 88 ms
16,116 KB
testcase_15 AC 90 ms
16,116 KB
testcase_16 MLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp

q = [[s, 0]]
while true
  t, c = q.shift

  unless t.include?('ccw')
    puts c
    exit
  end

  q.push([t[1..], c + 1])
  q.push([t[..-2], c + 1])
end
0