結果
| 問題 | 
                            No.345 最小チワワ問題
                             | 
                    
| コンテスト | |
| ユーザー | 
                             horiesiniti
                         | 
                    
| 提出日時 | 2016-05-25 14:52:20 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 68 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,416 KB | 
| 最終ジャッジ日時 | 2024-10-07 14:06:58 | 
| 合計ジャッジ時間 | 3,686 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 8 WA * 21 | 
コンパイルメッセージ
Syntax OK
ソースコード
# your code goes here str=STDIN.gets len=-1; (str.size).times do |i| a=str.slice(i,str.size).match(/c[^c]*?w[^w]*?w/) if a if len==-1 || a.string.size<len len=a.string.size end end end puts len
            
horiesiniti