lucas1809's blog

By lucas1809, 4 years ago, In English

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://mirror.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

Full text and comments »

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

By lucas1809, history, 4 years ago, In English

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://mirror.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

Full text and comments »

  • Vote: I like it
  • +5
  • Vote: I do not like it