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

Автор lucas1809, 4 года назад, По-английски

I was trying to solve round 656, question D (div3), and thought my logic in question D was right, but It's giving a wrong exit code in test case 3, causing TLE

https://codeforces.com/contest/1385/submission/87354850 <- code

My logic was using dp to find the minimum route of moves necessary. I use the function "contar" to count the number of moves necessary for the left part of the string and the right part, and recursevely use "solve" to get the best answer.

Also, is there a way to copy and paste the test cases used on the judge? I can't test -test case 3-, because It's too long, which is frustrating.

Thanks in advance. I would really apreciate it if you could help me

Полный текст и комментарии »

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

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

My code is giving "Wrong answer" with "Probably, the solution is executed with error 'uninitialized value usage' on the line 66" as an add up. When I looked for the error, It said my code was returning some value for some test case, but It's not. I don't understand it.

https://codeforces.com/contest/1370/submission/84590348

This is the submission. I would apreciate if someone helped me. If It helps, the question in from round 651 (div 2), question C

Thanks in advance

Полный текст и комментарии »

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