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 in the coordinate grid (-1,000
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 <= BX <= 1,000; -1000 <= BY <= 1,000), and tries to escape, starting at time 0. She moves continuously at a velocity of (BVX, BVY) units/second (-100 <= BVX <= 100; -100 <= BVY <= 100). Thus, at time 1 she will be at point (BX + BVX, BY + BVY); at time 1.5 she will be at (BX + 1.5*BVX, BY + 1.5*BVY). Unfortunately, Canmuu has sent N (1 <= N <= 50,000) cattle bruisers to pursue Bessie. At time t=0, cattle bruiser i is at position (Xi, Yi) (-1,000 <= Xi <= 1,000; -1,000 <= Yi <= 1,000) with velocity (VXi, VYi) units/second (-1,000 <= VXi <= 1,000; -1,000 <= VYi <= 1,000). Each cattle bruiser carries a 'proximity' weapon to fire at Bessie; the weapon can hurt Bessie when the cattle bruiser is no further than R (1 <= R <= 2,500) units from her. Bessie has a shield to protect herself from these attacks. However, she does not want to waste any of her shield's power, so she would like to know the maximum number of cattle bruisers within firing range for any (potentially non-integer) time t >= 0. In order to avoid precision errors with real numbers, it is guaranteed that the answer produced will be the same whether the attack range is decreased to R-0.0001 or increased to R+0.0001.