結果

問題 No.2298 yukicounter
ユーザー 👑 H20H20
提出日時 2023-05-19 09:08:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 1,056 ms
コンパイル使用メモリ 86,580 KB
実行使用メモリ 121,380 KB
最終ジャッジ日時 2023-08-22 17:42:45
合計ジャッジ時間 5,220 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,392 KB
testcase_01 AC 69 ms
71,200 KB
testcase_02 AC 69 ms
71,112 KB
testcase_03 AC 120 ms
104,576 KB
testcase_04 AC 94 ms
87,020 KB
testcase_05 AC 78 ms
76,428 KB
testcase_06 AC 135 ms
118,408 KB
testcase_07 AC 91 ms
86,032 KB
testcase_08 AC 79 ms
76,456 KB
testcase_09 AC 80 ms
77,544 KB
testcase_10 AC 76 ms
76,108 KB
testcase_11 AC 84 ms
78,700 KB
testcase_12 AC 82 ms
78,256 KB
testcase_13 AC 84 ms
78,960 KB
testcase_14 AC 82 ms
79,064 KB
testcase_15 AC 73 ms
75,688 KB
testcase_16 AC 78 ms
76,800 KB
testcase_17 AC 79 ms
76,440 KB
testcase_18 AC 70 ms
71,304 KB
testcase_19 AC 69 ms
71,276 KB
testcase_20 AC 69 ms
71,104 KB
testcase_21 AC 69 ms
71,400 KB
testcase_22 AC 81 ms
79,232 KB
testcase_23 AC 82 ms
78,600 KB
testcase_24 AC 137 ms
121,380 KB
testcase_25 AC 102 ms
95,992 KB
testcase_26 AC 81 ms
77,508 KB
testcase_27 AC 119 ms
109,488 KB
testcase_28 AC 81 ms
77,724 KB
testcase_29 AC 79 ms
77,280 KB
testcase_30 AC 75 ms
75,720 KB
testcase_31 AC 76 ms
76,532 KB
testcase_32 AC 80 ms
77,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
YUKI = list('yukicoder')
ans = 0
temp = 0
y = 0
for s in S:
    if s==YUKI[y]:
        y+=1
        if y==len(YUKI):
            temp+=1
            y=0
    else:
        ans = max(temp,ans)
        temp=0
        y=0
print(max(temp,ans))
0