RipplingOA #4
Cyber Beacon Detection (Lattice Points in Disk ∩ Rectangle)
估计中等评测数据准备中,可先阅读题面
考点(AI 标注)位运算
A network security administrator has identified a rogue signal originating from coordinates (xl, yl) that illuminates nodes within a radius R. The network is represented as a rectangular grid with bottom-left (x1, y1) and top-right (x2, y2). A point (x, y) is fully illuminated if its distance from the beacon's center ≤ R.
Determine how many grid nodes are completely illuminated.