| DotsInCircle/VladislavP | DotsInCircle/s9160605122 | ||||
|---|---|---|---|---|---|
| t | 1 | (x, y, r) = eval(input()) | t | 1 | (x0, y0, R) = eval(input()) |
| 2 | while (coords := eval(input())) != (0, 0): | 2 | while (t := eval(input())) != (0, 0): | ||
| 3 | if (coords[0] - x) ** 2 + (coords[1] - y) ** 2 > r ** 2: | 3 | if (t[0] - x0) ** 2 + (t[1] - y0) ** 2 > R ** 2: | ||
| 4 | print('NO') | 4 | print('NO') | ||
| 5 | break | 5 | break | ||
| 6 | else: | 6 | else: | ||
| 7 | print('YES') | 7 | print('YES') | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||