Блог пользователя danilka.pro

Автор danilka.pro, 10 лет назад, По-английски

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?

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

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