結果

問題 No.2298 yukicounter
ユーザー V_MelvilleV_Melville
提出日時 2023-05-13 18:06:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 86,768 KB
実行使用メモリ 77,408 KB
最終ジャッジ日時 2023-08-19 16:07:56
合計ジャッジ時間 3,983 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,324 KB
testcase_01 AC 59 ms
71,272 KB
testcase_02 AC 62 ms
71,184 KB
testcase_03 AC 69 ms
76,648 KB
testcase_04 AC 72 ms
75,912 KB
testcase_05 AC 65 ms
75,460 KB
testcase_06 AC 72 ms
77,408 KB
testcase_07 AC 68 ms
76,056 KB
testcase_08 AC 68 ms
75,616 KB
testcase_09 AC 64 ms
75,504 KB
testcase_10 AC 64 ms
75,296 KB
testcase_11 AC 68 ms
75,972 KB
testcase_12 AC 65 ms
75,984 KB
testcase_13 AC 64 ms
76,016 KB
testcase_14 AC 68 ms
75,888 KB
testcase_15 AC 62 ms
71,344 KB
testcase_16 AC 66 ms
75,696 KB
testcase_17 AC 64 ms
75,472 KB
testcase_18 AC 60 ms
71,248 KB
testcase_19 AC 62 ms
71,216 KB
testcase_20 AC 62 ms
70,988 KB
testcase_21 AC 61 ms
71,132 KB
testcase_22 AC 65 ms
75,896 KB
testcase_23 AC 66 ms
76,016 KB
testcase_24 AC 72 ms
77,368 KB
testcase_25 AC 66 ms
76,464 KB
testcase_26 AC 65 ms
75,464 KB
testcase_27 AC 70 ms
77,068 KB
testcase_28 AC 64 ms
75,700 KB
testcase_29 AC 65 ms
75,716 KB
testcase_30 AC 60 ms
71,296 KB
testcase_31 AC 66 ms
75,412 KB
testcase_32 AC 66 ms
75,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
t = 'yukicoder'
n, m = len(s), len(t)

ans = 0
i, now = 0, 0
while i < n:
    if i < n and s[i:i+m] == t:
        now += 1
        ans = max(ans, now)
        i += m
    else:
        now = 0
        i += 1
print(ans)
            
0