#K57007. Lamp-Post Blackout Check
Lamp-Post Blackout Check
Lamp-Post Blackout Check
You are tasked with determining whether a street's lamp-post configuration will result in a blackout. A configuration is given by a sequence of lamp-post states, where a 1 indicates the lamp is turned on, and a 0 indicates it is off. A new section is counted when a lamp turns on immediately after a lamp that was off.
If there is more than one section (i.e. more than one group of consecutive 1's), then the configuration causes a blackout, and you should output Blackout. Otherwise, output No Blackout.
Note: When there are no lamp-posts, the configuration is considered safe, and you should output No Blackout.
inputFormat
The first line of input contains a single integer T representing the number of test cases. Each test case consists of a line starting with an integer N (the number of lamp-posts), followed by N space-separated integers where each integer is either 0 or 1 representing the state of a lamp-post.
outputFormat
For each test case, output on a separate line either Blackout if the configuration causes a blackout (i.e. more than one section of consecutive 1's), or No Blackout otherwise.
## sample1
4 0 1 0 0
No Blackout