結果
問題 |
No.2298 yukicounter
|
ユーザー |
|
提出日時 | 2024-07-28 20:09:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 508 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 13,312 KB |
最終ジャッジ日時 | 2024-07-28 20:09:39 |
合計ジャッジ時間 | 7,351 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 4 |
ソースコード
s = input() y = "yukicoder" maxy = 0 cnt = 1 for i in range(len(s)- len(y) +1): if s[i:i+9] == y and s[i+9:i+18] == y: cnt += 1 maxy = max(maxy, cnt) elif s[i:i+9] == y and s[i+9:i+18] != y: cnt = 1 print(maxy)