結果
| 問題 |
No.345 最小チワワ問題
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-05-25 13:01:38 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 164 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-07 14:04:22 |
| 合計ジャッジ時間 | 4,333 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
コンパイルメッセージ
Syntax OK
ソースコード
# your code goes here
str=STDIN.gets
a=str.scan(/c{1,1}[^cw]*?w{1,1}[^w]*?w{1,1}/)
len=-1
a.each do |b|
if len==-1 || b.length<len
len=b.length
end
end
puts len
horiesiniti