結果
問題 |
No.345 最小チワワ問題
|
ユーザー |
|
提出日時 | 2020-04-29 12:36:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 174 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-28 01:42:57 |
合計ジャッジ時間 | 1,780 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 20 WA * 9 |
ソースコード
l=[] s=input() s=s.split("c")[1:] for ss in s: ss=ss.split("w") if len(ss)>1: l.append(len("Foo"+"".join(ss[0:2]))) if not l==[]: print(min(l)) else: print(-1)