Hello, Codeforces!
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?
I think this is problem from SPOJ side. This happened once in codechef too but later the problem was solved from codechef side. One user also asked the question on stackoverflow too. StackOverflow