結果

問題 No.345 最小チワワ問題
ユーザー Maboy
提出日時 2018-02-18 13:31:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-24 12:42:52
合計ジャッジ時間 2,195 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 12 RE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
w='cww'
l=[]
p=[]
for i,j in enumerate(s):
  if j in w:
    l+=[j]
    l=l[-3:]
    p+=[i]
    p=p[-3:]
    if ''.join(l)==w:
      break
print(max(p)-min(p)+1)
0