結果

問題 No.2298 yukicounter
ユーザー V_MelvilleV_Melville
提出日時 2023-05-13 18:00:34
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 208 bytes
コンパイル時間 2,673 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 80,696 KB
最終ジャッジ日時 2023-08-19 16:05:03
合計ジャッジ時間 6,790 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,204 KB
testcase_01 AC 70 ms
71,540 KB
testcase_02 AC 74 ms
71,376 KB
testcase_03 AC 89 ms
76,892 KB
testcase_04 AC 82 ms
76,360 KB
testcase_05 AC 82 ms
76,096 KB
testcase_06 AC 91 ms
77,896 KB
testcase_07 AC 82 ms
76,484 KB
testcase_08 AC 79 ms
75,964 KB
testcase_09 AC 82 ms
76,056 KB
testcase_10 AC 77 ms
76,120 KB
testcase_11 AC 80 ms
76,256 KB
testcase_12 AC 80 ms
76,440 KB
testcase_13 AC 85 ms
76,488 KB
testcase_14 AC 84 ms
76,468 KB
testcase_15 AC 79 ms
75,824 KB
testcase_16 AC 82 ms
76,300 KB
testcase_17 AC 80 ms
76,120 KB
testcase_18 AC 74 ms
71,432 KB
testcase_19 AC 73 ms
71,024 KB
testcase_20 AC 72 ms
71,344 KB
testcase_21 AC 72 ms
71,320 KB
testcase_22 TLE -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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