The problem - spoj.pl/problems/MAJSTOR/
This code works perfectly fine for me and I don't even imagine what can cause an error.
ac
Did you read Michael T.'s comment below the problemset? That's exactly what causes your NZEC.If you strip the "bad EOLs" off, you'll get AC.
Thanks, should have read more carefully.