Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
\begin{array}{c} \color{#db1616}{\texttt{#Khoadang09}} \end{array}
`@`$\texttt{Python: }$
from math import *
a, b = map(float,input().split())
x, y = map(float,input().split())
print(f"{2*pi*sqrt((x-a)**2+(y-b)**2):.2f}")
print(f"{pi*(sqrt((x-a)**2+(y-b)**2))**2:.2f}")
`@`$\texttt{Ngoài lề: }$
Khoảng cách `=sqrt((x-a)^2+(y-b)^2)`
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin