結果

問題 No.2298 yukicounter
ユーザー koarakko5555
提出日時 2023-05-12 21:28:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,200 KB
実行使用メモリ 63,616 KB
最終ジャッジ日時 2024-11-28 17:20:10
合計ジャッジ時間 2,646 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = 0
cnt = 0
now = 0

while now < len(S):
    if S[now:now+9] == "yukicoder":
        cnt += 1
        now += 9
    else:
        ans = max(ans, cnt)
        now += 1
        cnt = 0
ans = max(ans, cnt)
print(ans)
0