結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-05-25 13:17:44 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 163 bytes |
| 記録 | |
| コンパイル時間 | 51 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-04-24 04:15:28 |
| 合計ジャッジ時間 | 2,704 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
コンパイルメッセージ
Syntax OK
ソースコード
# your code goes here
str=STDIN.gets
a=str.scan(/c{1,1}[^c]*?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