結果

問題 No.2298 yukicounter
ユーザー ShirotsumeShirotsume
提出日時 2023-03-13 15:04:15
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 542 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 81,636 KB
実行使用メモリ 104,752 KB
最終ジャッジ日時 2023-10-18 13:13:51
合計ジャッジ時間 5,313 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
57,900 KB
testcase_01 AC 38 ms
53,480 KB
testcase_02 AC 38 ms
53,480 KB
testcase_03 AC 94 ms
100,920 KB
testcase_04 AC 56 ms
72,136 KB
testcase_05 AC 48 ms
62,708 KB
testcase_06 AC 105 ms
104,752 KB
testcase_07 AC 55 ms
71,848 KB
testcase_08 AC 50 ms
65,152 KB
testcase_09 AC 52 ms
67,992 KB
testcase_10 AC 47 ms
62,432 KB
testcase_11 AC 53 ms
68,880 KB
testcase_12 AC 54 ms
68,784 KB
testcase_13 AC 70 ms
83,336 KB
testcase_14 AC 71 ms
83,744 KB
testcase_15 AC 45 ms
59,920 KB
testcase_16 AC 50 ms
65,184 KB
testcase_17 AC 48 ms
64,748 KB
testcase_18 AC 38 ms
53,480 KB
testcase_19 AC 38 ms
53,480 KB
testcase_20 AC 38 ms
53,480 KB
testcase_21 AC 39 ms
53,480 KB
testcase_22 TLE -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
INF = 2**63-1
mod = 998244353

s = list(input())

y = list("yukicoder")
t = y[::]
now = 0

for i in range(len(s)):
    
    for j in range(len(s) - len(t) + 1):
        for k in range(len(t)):
            if t[k] != s[j + k]:
                break
        else:
            now += 1
            for v in y:
                t.append(v)
            break
    else:
        break
print(now)
        
0