Can anyone tell a test case where my code fails ?

question : http://www.codechef.com/problems/LEBOMBS/

solution : http://www.codechef.com/viewsolution/1760564

2 (number of test cases )
1 (number of buildings )
0 (status of buildings )
2 (number of buildings )
00 (status of buildings )
What happens when you have a test case with one building and you have more test cases after that also . You simply ignore all other test cases . Why are you breaking out of the test case loop when n == 1.
Instead put an if else statement .

1 Like
//