結果

問題 No.2298 yukicounter
ユーザー イルカイルカ
提出日時 2024-06-09 21:03:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 63,924 KB
最終ジャッジ日時 2024-12-30 23:30:44
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
yc = "yukicoder"
cur = 0
K = 0
ans = 0
while cur < len(S):
    if S[cur:cur+len(yc)] == yc:
        K += 1
        cur += len(yc)
    else:
        if K > ans:
            ans = K
        K = 0
        cur += 1
if K > ans:
    ans = K
print(ans)
"🐬"
0