SP3678 CATTLEB - Cattle Bruisers
Description
Canmuu is out for revenge after being utterly defeated by Bessie in paintball and has challenged Bessie to a video game.
In this game, Bessie starts out at point (BX, BY) in the coordinate grid (-1,000
Input Format
\* Line 1: Six space-separated integers: N, R, BX, BY, BVX, and BVY \* Lines 2..N+1: Line i+1 contains four space-separated integers: X\_i, Y\_i, VX\_i, and VY\_i
Output Format
\* Line 1: Print a single integer denoting the maximum number of cattle bruisers within attack range at any point in time.
Explanation/Hint
Input details:
Bessie starts at point (0, 0) and is moving at 2 units per second in the (positive) y-direction. There are 3 cattle bruisers, the first of which starts at point (0, -3) and travels 4 units per second in the y-direction. The maximum distance for a cattle bruiser to be in range of Bessie is 1 unit.