- Python
P0542. 根号应用2 求求大佬帮忙!!!
- 2022-11-17 20:41:32 @
x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
d = (x1 - x2)**(x1 - x2)*2+(y1 - y2)**(y1 - y2)*2
print(round(d))
12 条评论
-
冲榜模式 (马骁楠) LV 7 @ 2022-11-27 21:51:54
import math sqrt = math.sqrt x1 = int(input()) x2 = int(input()) y1 = int(input()) y2 = int(input()) d = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) print(round(d, 2))
-
2022-11-19 17:31:42@
好了,谢谢大佬
-
2022-11-18 18:38:41@
大佬,写好后怎么做
-
2022-11-18 18:38:41@
大佬,写好后怎么做
-
2022-11-18 18:11:56@
谢谢大佬
-
2022-11-18 16:58:42@
写的不错,但是却了 math 的 sqrt
-
2022-11-18 16:57:55@
你这。。。。你看看根号需要什么?
-
2022-11-18 16:56:52@
你WA了?
-
2022-11-17 22:02:47@
求求大佬帮忙!!!
-
2022-11-17 22:02:37@
求求大佬帮忙!!!
-
2022-11-17 22:02:28@
求求大佬帮忙!!!
- 1