Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

solimm4sks's blog

By solimm4sks, history, 6 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.com/contest/559/submission/46421640

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

»
6 years ago, # |
  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.