結果

問題 No.345 最小チワワ問題
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-01 21:22:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 63,232 KB
最終ジャッジ日時 2024-07-08 08:06:09
合計ジャッジ時間 2,764 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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(max([len(x) for x in match]))
0