my submission: https://codeforces.com/contest/126/submission/190247628 //
as far as I can see, My solution is O(n²) when there is no solution and it got AC. and the string length is ~~ 1e6
Why my solution got accepted in this DIV1 B:
my submission: https://codeforces.com/contest/126/submission/190247628 //
as far as I can see, My solution is O(n²) when there is no solution and it got AC. and the string length is ~~ 1e6