Viking Assault 

Input

On the first line, we are given the number of targets and the number of
shots taken, separated by a space. Then, for each target, we are given
the coordinates X and Y respectively in each line, separated by a space.
Finally, for each shot, we are given the angle at which the cannon was
placed, and the reach of the shot from the ship, separated by a space.

Output

Each output line corresponds to an input target, in the same order the
targets were given. If the target has been sunk, the output should be
“DESTROYED”; if not, then the output should be the ship’s remaining
health percentage (as an integer value).

Problem information

Author: HP CodeWars

Generation: 2026-01-25T15:56:01.825Z

© Jutge.org, 2006–2026.
https://jutge.org
