Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя acwatle037

Автор acwatle037, история, 3 года назад, По-английски

Hello there!! In today's contest there is one question and I submitted my solution but it is not working correctly and I am not able to figure out why it is not working. I am not able to see the test case in jury verdict also because of the seen limit on the cases. So please can anyone help me to figure out why this is not working as I already spent more than 3 hrs on this. Thank You

My solution link: http://codeforces.com/contest/1512/submission/112575208

  • Проголосовать: нравится
  • -7
  • Проголосовать: не нравится

»
3 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

I think you should first cover all "one question mark" cases and then check all "two question marks" cases. Otherwise you might end up giving away too many 0s whereas you might have needed them later on in some "one question mark" case and you won't have any left.

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Do the 2 question mark case after you complete assigning middle element of an odd length string