Nzec in MARBLEGF using BIT

My solution is working correctly for all the test cases for the problem MARBLEGF but giving NZEC error on submission…Somebody plz help…the following is the link to my solution…
http://www.codechef.com/viewsolution/5468036