結果
| 問題 |
No.345 最小チワワ問題
|
| コンテスト | |
| ユーザー |
Twizz
|
| 提出日時 | 2017-02-22 20:29:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-30 19:11:42 |
| 合計ジャッジ時間 | 2,474 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 6 WA * 17 RE * 6 |
ソースコード
l=input()
n=l.count("c")
s=0
m=[]
for i in range(n):
if i==0:
s=l.find("c")
i=l.find("w",s)
e=l.find("w",i+1)
m.append(e-s+1)
else:
s=l.find("c",s+1)
i=l.find("w",s)
e=l.find("w",i+1)
m.append(e-s+1)
print(max(m))
Twizz