Some minutes ago I got accepted with problem on SPOJ resource. But a hour ago my correct solution was getting Runtime Error (Non-Zero Exit Code) because of
in.close() in following code:
in = new BufferedReader(new InputStreamReader(System.in)); ... in.close();
Removing that line brings me accepted. Could anyone explain that?