結果

問題 No.2298 yukicounter
ユーザー yabityabit
提出日時 2023-06-23 13:40:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 86,924 KB
実行使用メモリ 78,708 KB
最終ジャッジ日時 2023-09-13 08:34:32
合計ジャッジ時間 5,564 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,016 KB
testcase_01 AC 69 ms
71,440 KB
testcase_02 AC 73 ms
71,116 KB
testcase_03 AC 88 ms
77,544 KB
testcase_04 AC 78 ms
76,392 KB
testcase_05 AC 74 ms
75,672 KB
testcase_06 AC 93 ms
78,708 KB
testcase_07 AC 77 ms
76,452 KB
testcase_08 AC 75 ms
76,052 KB
testcase_09 AC 76 ms
75,852 KB
testcase_10 AC 73 ms
75,952 KB
testcase_11 AC 77 ms
76,048 KB
testcase_12 AC 78 ms
76,136 KB
testcase_13 AC 78 ms
76,244 KB
testcase_14 AC 79 ms
76,240 KB
testcase_15 AC 68 ms
71,236 KB
testcase_16 AC 77 ms
75,952 KB
testcase_17 AC 76 ms
75,692 KB
testcase_18 AC 69 ms
71,300 KB
testcase_19 AC 69 ms
71,264 KB
testcase_20 AC 69 ms
71,200 KB
testcase_21 AC 68 ms
71,272 KB
testcase_22 AC 75 ms
76,032 KB
testcase_23 AC 76 ms
76,160 KB
testcase_24 AC 87 ms
77,556 KB
testcase_25 AC 79 ms
76,384 KB
testcase_26 AC 75 ms
75,664 KB
testcase_27 AC 83 ms
77,216 KB
testcase_28 AC 76 ms
75,580 KB
testcase_29 AC 76 ms
75,992 KB
testcase_30 AC 69 ms
71,072 KB
testcase_31 AC 74 ms
75,944 KB
testcase_32 AC 74 ms
75,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
S = S.replace('yukicoder', 'A')
ans = 0
tmp = 0
for s in S:
    if s == 'A':
        tmp += 1
    else:
        tmp = 0
    ans = max(ans, tmp)
print(ans)
0