Library Checker Bug
Difference between en5 and en6, changed 57 character(s)
My [code](https://judge.yosupo.jp/submission/197379) for [Enumerate Palindromes](https://judge.yosupo.jp/problem/enumerate_palindromes) passes all the cases.<br>↵

But it has a fatal bug and should tle.<br><br>↵

<spoiler summary="What is it?">↵
```c++↵
r = i + res[i];↵
b = i;↵
```↵
</spoiler>↵

<spoiler summary="What it should be?">↵

```c++↵
if (i + res[i] > r) {↵
   r = i + res[i];↵
   b = i;↵
}↵
```↵
</spoiler>↵


<spoiler summary="Generator for failing case">↵

```c++↵
  ll n = 1e5;↵
  string s = "";↵
  for (ll i = 0; i < n; i++) {↵
    s += 'j';↵
    s += 'k';↵
  }↵
  cout << s  <<"\n";↵
```↵
</spoiler>↵

[Correct Code](https://judge.yosupo.jp/submission/197382)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English Misa-Misa 2024-03-18 06:47:23 37
en6 English Misa-Misa 2024-03-18 06:40:38 57 Tiny change: 'oiler>\n\n' -> 'oiler>\n\n[Correct Code](https://judge.yosupo.jp/submission/197382)'
en5 English Misa-Misa 2024-03-18 06:36:40 26
en4 English Misa-Misa 2024-03-18 06:35:44 0 (published)
en3 English Misa-Misa 2024-03-18 06:35:06 5
en2 English Misa-Misa 2024-03-18 06:34:09 6 Tiny change: 'd tle.<br>\n\n<s' -> 'd tle.<br><br>\n\n<s'
en1 English Misa-Misa 2024-03-18 06:33:52 671 Initial revision (saved to drafts)