python3,五个RE,这是哪里不对吗?

P5735 【深基7.例1】距离函数

jy2356286251 @ 2020-07-12 15:02:52

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))

by Clever_Jimmy @ 2020-07-12 16:39:26

@jy2356286251 也许输入是多行,每行一个数


by Clever_Jimmy @ 2020-07-12 16:39:44

以前的讨论帖子好像有


by jy2356286251 @ 2020-07-12 20:23:53

@Clever_Jimmy 嗯嗯,那我找找看


|