1 人解决,6 人已尝试。
2 份提交通过,共有 42 份提交。
9.9 EMB 奖励。
单点时限: 10.0 sec
内存限制: 256 MB
During a programming contest, teams can’t sit close to each other, because then a team
might copy the solution of another team. You are given the locations of the teams and the
minimum required Euclidian distance between two teams. You have to find the number of
pairs of teams that sit too close to each other.
On the first line an integer t (1 <= t <= 100): the number of test cases. Then for each test
case:
teams and the minimum distance between two teams.
the coordinates of the i-th team. No two teams will have the same coordinates.
For each test case:
Notes
The Euclidean distance between points (x1, y1) and (x2, y2) is sqrt((x1 − x2)^2 + (y1 − y2)^2).
1 6 3 0 0 0 3 2 1 2 3 3 0 3 1
8
1 人解决,6 人已尝试。
2 份提交通过,共有 42 份提交。
9.9 EMB 奖励。