WA in BULBS

I dont know where I am going wrong.
Can someone help me debug or provide test cases
Code : CodeChef: Practical coding for everyone

This problem test cases were weak.

Yeah but my code should pass even though some tc were incorrect, its not passing even those or are u saying that they answers of hidden tc are wrong