Hi Guys,
I am new here and I think like many first timers, I am having the NZEC error on my Java solution. I've been checking to spot any places in my code where it might be causing any run-time errors but have so far had no luck. Locally my test based on the sample input/output, passes.
I've changed my solution a few times (you can find a few submissions under my name...)
Am I relying on the input data to be correct too much in my code? If anyone can spot what is causing the problem, I would be grateful and should give me an idea on future submissions.
The test: http://www.codechef.com/problems/DRGHTS/
My solution: http://www.codechef.com/viewsolution/3463154
Thanks