Chopstick problem.

http://www.codechef.com/viewsolution/6546919

this is my solution for the problem:-
please tell the case it is failing for…

here is my code if u need
http://www.codechef.com/viewsolution/6547086