結果

問題 No.2298 yukicounter
ユーザー V_MelvilleV_Melville
提出日時 2023-05-12 21:44:50
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 194 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 91,304 KB
最終ジャッジ日時 2023-08-19 04:20:25
合計ジャッジ時間 6,095 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
75,876 KB
testcase_01 AC 68 ms
71,416 KB
testcase_02 AC 67 ms
71,244 KB
testcase_03 AC 88 ms
77,000 KB
testcase_04 AC 78 ms
76,616 KB
testcase_05 AC 78 ms
76,204 KB
testcase_06 AC 88 ms
77,888 KB
testcase_07 AC 79 ms
76,552 KB
testcase_08 AC 77 ms
76,000 KB
testcase_09 AC 76 ms
75,964 KB
testcase_10 AC 76 ms
75,868 KB
testcase_11 AC 77 ms
76,324 KB
testcase_12 AC 81 ms
76,440 KB
testcase_13 AC 84 ms
76,556 KB
testcase_14 AC 82 ms
76,580 KB
testcase_15 AC 75 ms
76,056 KB
testcase_16 AC 80 ms
76,044 KB
testcase_17 AC 79 ms
76,300 KB
testcase_18 AC 71 ms
71,432 KB
testcase_19 AC 69 ms
71,240 KB
testcase_20 AC 70 ms
71,232 KB
testcase_21 AC 73 ms
71,176 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 s[i:i+m] == t:
        now += 1
        i += m
    ans = max(ans, now)
print(ans)
            
0