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