python3,五个RE,这是哪里不对吗?
查看原帖
python3,五个RE,这是哪里不对吗?
306116
jy2356286251楼主2020/7/12 15:02
t = [int(x) for x in input().split()]
import math
c1 = math.sqrt((t[2]-t[0])**2+(t[3]-t[1])**2)
c2 = math.sqrt((t[4]-t[0])**2+(t[5]-t[1])**2)
c3 = math.sqrt((t[4]-t[2])**2+(t[5]-t[3])**2)
print('%.2f'%(c1+c2+c3))
2020/7/12 15:02
加载中...