DotsInCircle/dianarudenko | DotsInCircle/ArtemiyL | ||||
---|---|---|---|---|---|
t | 1 | (x, y, r) = eval(input()) | t | 1 | (cx, cy, cr) = eval(input()) |
2 | while (lst := eval(input())) != (0, 0): | 2 | while (coord := eval(input())) != (0, 0): | ||
3 | (x1, y1) = lst | 3 | (x, y) = coord | ||
4 | if not (x - x1) ** 2 + (y - y1) ** 2 <= r ** 2: | 4 | if (x - cx) ** 2 + (y - cy) ** 2 > cr ** 2: | ||
5 | print('NO') | 5 | print('NO') | ||
6 | break | 6 | break | ||
7 | else: | 7 | else: | ||
8 | print('YES') | 8 | print('YES') |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|