I had written the code of DRGHTS in Java. But I couldn’t get why I am getting NZEC error in the solution. The Question code is http://www.codechef.com/FEB14/problems/DRGHTS
When I re-wrote the same code in C++ by just changing the data structures it got accepted in the first attempt. My solution link of Java is this.