DotsInCircle/maksim.krasilnikov | DotsInCircle/artemkin1 | ||||
---|---|---|---|---|---|
n | 1 | (x, y, r) = map(float, input().split(',')) | n | 1 | (x0, y0, r) = map(float, input().split(',')) |
2 | status = 'YES' | 2 | result = 'YES' | ||
3 | while True: | 3 | while True: | ||
n | 4 | (dx, dy) = map(float, input().split(',')) | n | 4 | (x, y) = map(float, input().split(',')) |
5 | if dx == 0 and dy == 0: | 5 | if x == 0 and y == 0: | ||
6 | break | 6 | break | ||
t | 7 | if (dx - x) ** 2 + (dy - y) ** 2 > r * r: | t | 7 | if (x - x0) ** 2 + (y - y0) ** 2 > r ** 2: |
8 | status = 'NO' | 8 | result = 'NO' | ||
9 | break | 9 | print(result) | ||
10 | print(status) |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|