結果

問題 No.2298 yukicounter
ユーザー lloyzlloyz
提出日時 2023-05-12 21:25:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 879 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 78,012 KB
最終ジャッジ日時 2023-08-19 03:48:30
合計ジャッジ時間 4,716 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,232 KB
testcase_01 AC 61 ms
71,264 KB
testcase_02 AC 64 ms
71,452 KB
testcase_03 AC 81 ms
77,016 KB
testcase_04 AC 69 ms
76,392 KB
testcase_05 AC 67 ms
75,880 KB
testcase_06 AC 79 ms
77,800 KB
testcase_07 AC 70 ms
76,356 KB
testcase_08 AC 73 ms
75,880 KB
testcase_09 AC 70 ms
75,728 KB
testcase_10 AC 67 ms
75,864 KB
testcase_11 AC 69 ms
76,100 KB
testcase_12 AC 67 ms
76,228 KB
testcase_13 AC 74 ms
76,248 KB
testcase_14 AC 72 ms
76,232 KB
testcase_15 AC 67 ms
76,180 KB
testcase_16 AC 70 ms
76,028 KB
testcase_17 AC 72 ms
75,884 KB
testcase_18 AC 62 ms
71,296 KB
testcase_19 AC 65 ms
71,228 KB
testcase_20 AC 66 ms
71,328 KB
testcase_21 AC 63 ms
71,100 KB
testcase_22 AC 68 ms
76,268 KB
testcase_23 AC 70 ms
76,204 KB
testcase_24 AC 81 ms
78,012 KB
testcase_25 AC 77 ms
77,084 KB
testcase_26 AC 72 ms
75,976 KB
testcase_27 AC 83 ms
77,536 KB
testcase_28 AC 73 ms
76,004 KB
testcase_29 AC 73 ms
75,928 KB
testcase_30 AC 72 ms
75,940 KB
testcase_31 AC 71 ms
75,788 KB
testcase_32 AC 72 ms
75,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

yukicoder = 'yukicoder'
n = len(s)
ans = 0
temp = 0
for i in range(n):
    if s[i] == yukicoder[temp % 9]:
        temp += 1
    else:
        temp = 0
    ans = max(ans, temp // 9)
print(ans)
0