結果
問題 |
No.2298 yukicounter
|
ユーザー |
|
提出日時 | 2023-05-24 22:43:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 607 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 13,056 KB |
最終ジャッジ日時 | 2024-12-23 22:45:44 |
合計ジャッジ時間 | 4,834 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
s=input() t='yukicoder' n=len(t) ans=0 c=0 i=0 while i+n<=len(s): if s[i:i+n]==t: c+=1 i+=n else: ans=max(ans,c) c=0 i+=1 ans=max(ans,c) print(ans)