結果
| 問題 |
No.436 ccw
|
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-02-01 14:09:40 |
| 言語 | Ruby (3.4.1) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 168 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 645,020 KB |
| 最終ジャッジ日時 | 2024-09-18 19:58:10 |
| 合計ジャッジ時間 | 7,239 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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