##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
There are musketeers standing on a coordinate grid.
For each with , one musketeer stands at and shoots a bullet parallel to the positive direction of the -axis.
For each with , one musketeer stands at and shoots a bullet parallel to the positive direction of the -axis.
All bullets are shot at the same time. The speed of the bullet shot from is units per second, and the speed of the bullet shot from is units per second.
Bullets pass through each other and continue moving. If at some real time with two bullets are at the same point, the two musketeers who shot them become friends.
For each test case, find the number of pairs of musketeers that become friends.