結果
| 問題 | No.2298 yukicounter |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-24 22:43:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 406 ms / 2,000 ms |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 399 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 16,856 KB |
| 最終ジャッジ日時 | 2026-05-29 20:46:06 |
| 合計ジャッジ時間 | 8,189 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)