結果

問題 No.345 最小チワワ問題
ユーザー yuki2006
提出日時 2016-02-18 02:34:00
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 07:44:55
合計ジャッジ時間 1,262 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
import re

S = raw_input()

result = re.search("c.*?w.*?w", S)
if result:
    print len(result.group())
else:
    print -1
0