Problem G
Curse the Darkness
You are trying to read in a dark room. The room contains
many candles, but none are lit. You are considering that it
might be worthwhile to light one, but before you do you want to
be certain that it will actually light your book. You only get
to light one and each is bright enough to cast light in a
radius of
Input
Input begins with an integer
Output
For each test case, output “light a candle” if there is a candle close enough to cast light on the position of your book. Otherwise, output “curse the darkness”.
Sample Input 1 | Sample Output 1 |
---|---|
2 10 10 1 15 15 10 10 2 20.5 10 10 20.5 |
light a candle curse the darkness |