結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-22 15:07:45 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 2,000 ms |
| + 289µs | |
| コード長 | 134 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-10 21:57:04 |
| 合計ジャッジ時間 | 2,647 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
s,r=input(),range l=len(s) a=min([min([1+(l,j-i)[s[i]+s[j]=='cw'and 'w'in s[i:j]]for j in r(i,l)])for i in r(0,l)]) print((a,-1)[a>l])