Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

solimm4sks's blog

By solimm4sks, history, 8 years ago, In English

Hey guys, I'm cant seem to find a mistake in my code in problem 559B Equivalent Strings, I'm using recursive functions and expected TLE but am getting WA for test case 25. Can tell me what I did wrong? Sorry for my bad English, Thanks in advance :D https://codeforces.me/contest/559/submission/46421640

  • Vote: I like it
  • -7
  • Vote: I do not like it

»
8 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The length of a string (or a substring) can be odd and so you can't split it on two parts of equal length. In the code you forcely split the strings with odd length.