RahulAhuja2901's blog

By RahulAhuja2901, history, 15 months ago, In English

I was solving the problem 1561C Deep Down Below where I was using Binary Search on Answer. Initially I was getting Wrong Answer on Test Case 14 so I double checked my code but was unable to find any error.

Link to my Submission — https://mirror.codeforces.com/problemset/submission/1561/193939724

So after a lot of Wrong Submissions I removed the Try-Catch Block and then I got Runtime Error (Exit Code is 11).

Link to my Submission — https://mirror.codeforces.com/problemset/submission/1561/193939801

Then I replaced "out.println ()" with "System.out.println ()" and I again got Wrong Answer on Test Case 14 saying "Answer contains longer sequence [length = 1000], but output contains 750 elements" so at some point my code is going through a runtime error but I am not able to figure it out.

Link to my Submission — https://mirror.codeforces.com/problemset/submission/1561/193939951

Link to the Problem — https://mirror.codeforces.com/problemset/problem/1561/C

Full text and comments »

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