結果

問題 No.2298 yukicounter
ユーザー H20
提出日時 2023-05-19 09:08:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 120,160 KB
最終ジャッジ日時 2024-12-17 18:10:32
合計ジャッジ時間 4,201 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
YUKI = list('yukicoder')
ans = 0
temp = 0
y = 0
for s in S:
    if s==YUKI[y]:
        y+=1
        if y==len(YUKI):
            temp+=1
            y=0
    else:
        ans = max(temp,ans)
        temp=0
        y=0
print(max(temp,ans))
0