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