danilka.pro's blog

By danilka.pro, 9 years ago, In English

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?

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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