結果

問題 No.345 最小チワワ問題
ユーザー Fullmoon85072
提出日時 2020-08-01 21:23:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 63,232 KB
最終ジャッジ日時 2024-07-08 08:07:07
合計ジャッジ時間 2,746 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

S = input()
match = re.findall("c.+w.*w", S)
if len(match) == 0:
    print(-1)
else:
    print(min([len(x) for x in match]))
0