Hi codeforces community, I was solving 1820B - JoJo's Incredible Adventures and I got WA when I used s.length()*s.length(), but got AC when I used n*n (but n is the same as s.length()).
Is this supposed to happen?
299256114 is the AC code and 299255008 is the other one. Check the second "else if" statement at the end.