CodeForces.1046A.AI Robot (+ Dynamic prescription segment tree discretization +)

  The effect of this problem: n (1e5) robots, each robot the position x, the radius r, IQ value q (both 1E9),
the conditions provided two robots are able to identify each other: two robots each other in the radial and IQ values differ by no more than k (20), asked how many of the robot can recognize each other.

  

Guess you like

Origin www.cnblogs.com/bianjunting/p/11301980.html