I have little practice with Java, but take a look at this link: https://codingcompetitions.withgoogle.com/codejam/submissions/000000000019fef2/ZWF0bW9yZQ
These are submissions from the 18th place finisher in the competition. Compare your code to this. Maybe you will catch something. Best, Matt On Monday, April 20, 2020 at 12:37:39 PM UTC-4, aman kumar wrote: > > Hi > I'm just a beginner in Java. > > I was attempting to submit my solution for *Round 1B - Expogo.* > > The sample test case was : > > * 4 > 2 3 > -2 -3 > 3 0 > -1 1* > > > It did not had a new line character or any delimiter such as space which > tells the BufferedReader or Scanner to stop waiting for input. > For now the reader will keep stuck and gives a RE. If we add a new line > character at the end it works perfectly. > How to overcome such cases ? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/3061bc9e-e970-4aa7-b3f4-ca95bc49adee%40googlegroups.com.