結果
| 問題 |
No.2298 yukicounter
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-13 18:00:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 271 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 64,384 KB |
| 最終ジャッジ日時 | 2024-11-29 09:44:03 |
| 合計ジャッジ時間 | 5,857 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 TLE * 1 |
ソースコード
s = input()
t = 'yukicoder'
n, m = len(s), len(t)
ans = 0
for i in range(n):
now = 0
while i < n and s[i:i+m] == t:
now += 1
ans = max(ans, now)
i += m
print(ans)