Runtime Error (Exit Code is 11) in JAVA

Правка en1, от RahulAhuja2901, 2023-02-17 03:01:29

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.net/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.net/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.net/problemset/submission/1561/193939951

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский RahulAhuja2901 2023-02-17 03:01:29 1018 Initial revision (published)