結果

問題 No.2298 yukicounter
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-05-18 22:08:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 322 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 160,400 KB
最終ジャッジ日時 2024-05-09 18:58:13
合計ジャッジ時間 6,265 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
55,552 KB
testcase_01 AC 62 ms
55,808 KB
testcase_02 AC 62 ms
55,424 KB
testcase_03 AC 262 ms
128,992 KB
testcase_04 AC 160 ms
94,540 KB
testcase_05 AC 92 ms
79,664 KB
testcase_06 AC 322 ms
160,400 KB
testcase_07 AC 140 ms
92,708 KB
testcase_08 AC 107 ms
82,108 KB
testcase_09 AC 121 ms
85,948 KB
testcase_10 AC 100 ms
78,336 KB
testcase_11 AC 134 ms
90,092 KB
testcase_12 AC 139 ms
88,924 KB
testcase_13 AC 131 ms
86,184 KB
testcase_14 AC 120 ms
86,592 KB
testcase_15 AC 68 ms
63,360 KB
testcase_16 AC 114 ms
80,256 KB
testcase_17 AC 106 ms
79,464 KB
testcase_18 AC 56 ms
55,552 KB
testcase_19 AC 51 ms
55,936 KB
testcase_20 AC 57 ms
55,808 KB
testcase_21 AC 59 ms
55,424 KB
testcase_22 AC 105 ms
87,812 KB
testcase_23 AC 107 ms
86,008 KB
testcase_24 AC 203 ms
133,632 KB
testcase_25 AC 134 ms
95,964 KB
testcase_26 AC 91 ms
83,584 KB
testcase_27 AC 176 ms
118,272 KB
testcase_28 AC 103 ms
83,712 KB
testcase_29 AC 91 ms
81,792 KB
testcase_30 AC 68 ms
64,256 KB
testcase_31 AC 85 ms
80,512 KB
testcase_32 AC 100 ms
83,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from heapq import *
from functools import *
import sys,math
input = sys.stdin.readline

S = list(input())[:-1]
N = len(S)
X = list('yukicoder')
now = 0
ans = []
while now < N-8:
    if all(S[now+j]==X[j] for j in range(9)):
        ans.append('*')
        now += 9
    else:
        ans.append(S[now])
        now += 1

res = 0
for g,r in groupby(ans):
    if g=='*':
        res = max(res,len(list(r)))
print(res)
0