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