結果

問題 No.2298 yukicounter
ユーザー pluto77pluto77
提出日時 2023-06-20 16:00:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 369 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,744 KB
最終ジャッジ日時 2023-09-10 11:37:28
合計ジャッジ時間 4,756 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,804 KB
testcase_01 AC 15 ms
7,864 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 239 ms
9,160 KB
testcase_04 AC 97 ms
8,260 KB
testcase_05 AC 30 ms
7,776 KB
testcase_06 AC 369 ms
9,628 KB
testcase_07 AC 92 ms
8,228 KB
testcase_08 AC 41 ms
7,988 KB
testcase_09 AC 62 ms
8,128 KB
testcase_10 AC 22 ms
7,936 KB
testcase_11 AC 77 ms
8,164 KB
testcase_12 AC 72 ms
8,280 KB
testcase_13 AC 46 ms
8,248 KB
testcase_14 AC 50 ms
8,336 KB
testcase_15 AC 16 ms
7,860 KB
testcase_16 AC 27 ms
8,036 KB
testcase_17 AC 24 ms
8,044 KB
testcase_18 AC 15 ms
7,780 KB
testcase_19 AC 15 ms
7,824 KB
testcase_20 AC 15 ms
7,768 KB
testcase_21 AC 15 ms
7,768 KB
testcase_22 AC 35 ms
8,224 KB
testcase_23 AC 32 ms
8,200 KB
testcase_24 AC 105 ms
9,744 KB
testcase_25 AC 55 ms
8,752 KB
testcase_26 AC 28 ms
8,176 KB
testcase_27 AC 82 ms
9,176 KB
testcase_28 AC 27 ms
8,240 KB
testcase_29 AC 24 ms
8,068 KB
testcase_30 AC 15 ms
7,920 KB
testcase_31 AC 23 ms
8,208 KB
testcase_32 AC 28 ms
8,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
n=len(s)
i=0
cnt=0
ans=0
while i < n:
 if i<n-8 and s[i:i+9]=='yukicoder':
  cnt+=1
  ans=max(ans,cnt)
  i+=9
 else:
  cnt=0
  i+=1
print(ans)
0