結果
| 問題 | 
                            No.345 最小チワワ問題
                             | 
                    
| コンテスト | |
| ユーザー | 
                             taba
                         | 
                    
| 提出日時 | 2016-04-13 08:02:10 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 174 bytes | 
| コンパイル時間 | 117 ms | 
| コンパイル使用メモリ | 6,948 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-04 07:10:46 | 
| 合計ジャッジ時間 | 1,518 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 RE * 1 | 
| other | AC * 13 WA * 6 RE * 10 | 
ソースコード
s=raw_input() c=-1 w=-1 l=[] for i in range(len(s)): if s[i]=="c": c=i if s[i]=="w": if c<w: l+=[i-c+1] w=-1 else: w=i #print s[i],c,w #print l print min(l)
            
taba