| DotsInCircle/KH9IZ | DotsInCircle/BarabanovNS | ||||
|---|---|---|---|---|---|
| t | 1 | (x, y, r) = eval(input()) | t | 1 | (x0, y0, r) = eval(input()) | 
| 2 | msg = 'YES' | 2 | incircle = 'YES' | ||
| 3 | (dot_x, dot_y) = eval(input()) | 3 | (x, y) = eval(input()) | ||
| 4 | while (dot_x, dot_y) != (0, 0): | 4 | while (x, y) != (0, 0): | ||
| 5 | if (dot_x - x) ** 2 + (dot_y - y) ** 2 > r ** 2: | 5 | if (x - x0) ** 2 + (y - y0) ** 2 > r ** 2: | ||
| 6 | msg = 'NO' | 6 | incircle = 'NO' | ||
| 7 | (dot_x, dot_y) = eval(input()) | 7 | (x, y) = eval(input()) | ||
| 8 | print(msg) | 8 | print(incircle) | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
 | 
 | |||||||||