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

Автор RahulAhuja2901, история, 15 месяцев назад, По-английски

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://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://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://codeforces.com/problemset/submission/1561/193939951

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

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

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