結果
問題 |
No.2298 yukicounter
|
ユーザー |
|
提出日時 | 2023-05-13 18:06:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 82,324 KB |
実行使用メモリ | 63,360 KB |
最終ジャッジ日時 | 2024-11-29 09:46:56 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
s = input() t = 'yukicoder' n, m = len(s), len(t) ans = 0 i, now = 0, 0 while i < n: if i < n and s[i:i+m] == t: now += 1 ans = max(ans, now) i += m else: now = 0 i += 1 print(ans)