結果

問題 No.2298 yukicounter
ユーザー dangodango
提出日時 2023-06-05 20:54:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 578 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 9,748 KB
最終ジャッジ日時 2023-08-28 09:43:25
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,724 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 14 ms
7,840 KB
testcase_03 AC 385 ms
9,116 KB
testcase_04 AC 158 ms
8,296 KB
testcase_05 AC 39 ms
7,956 KB
testcase_06 AC 578 ms
9,636 KB
testcase_07 AC 149 ms
8,268 KB
testcase_08 AC 56 ms
8,028 KB
testcase_09 AC 89 ms
8,112 KB
testcase_10 AC 28 ms
7,804 KB
testcase_11 AC 115 ms
8,304 KB
testcase_12 AC 105 ms
8,168 KB
testcase_13 AC 58 ms
8,356 KB
testcase_14 AC 61 ms
8,396 KB
testcase_15 AC 15 ms
7,780 KB
testcase_16 AC 31 ms
8,068 KB
testcase_17 AC 27 ms
8,004 KB
testcase_18 AC 16 ms
7,804 KB
testcase_19 AC 15 ms
7,780 KB
testcase_20 AC 15 ms
7,908 KB
testcase_21 AC 15 ms
7,792 KB
testcase_22 AC 29 ms
8,224 KB
testcase_23 AC 28 ms
8,160 KB
testcase_24 AC 84 ms
9,748 KB
testcase_25 AC 42 ms
8,680 KB
testcase_26 AC 25 ms
8,028 KB
testcase_27 AC 65 ms
9,236 KB
testcase_28 AC 24 ms
8,116 KB
testcase_29 AC 22 ms
8,064 KB
testcase_30 AC 16 ms
7,836 KB
testcase_31 AC 20 ms
8,100 KB
testcase_32 AC 24 ms
8,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
N, Ans, C, I = len('yukicoder'), 0, 0, 0
while I+N <= len(S):
    if S[I:I + N] == 'yukicoder':
        C += 1
        I += N
    else:
        Ans = max(Ans, C)
        C = 0
        I += 1
print(max(Ans, C))
0