結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-02-01 14:09:40 |
| 言語 | Ruby (4.0.2) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 168 bytes |
| 記録 | |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 941,568 KB |
| 最終ジャッジ日時 | 2026-04-06 19:58:42 |
| 合計ジャッジ時間 | 5,787 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 MLE * 1 -- * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
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
wonda_t_coffee