結果

問題 No.345 最小チワワ問題
ユーザー ecottea
提出日時 2023-01-26 02:31:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-06-27 02:31:15
合計ジャッジ時間 2,268 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
dump = lambda *x : print(*x, file = sys.stderr)

import re

s = input()
m = re.search(r'c.*w.*w.*?', s)
dump(m)

if m is None:
    print(-1)
else:
    print(len(m.group(0)))
0