Hi My Java code gives NZEC error when submitting on CodeChef.
However it runs successfully for me with the correct result.
The problem is Golf Course problem:
My solution is:
http://www.codechef.com/viewsolution/2806694
Can any one please tell me what is wrong
Thanks