為什麼re啊,本機測試都沒問題

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

平凡的夜空 @ 2020-06-24 20:41:43

import math as m
s=input().split()
for i in range(len(s)):
    s[i]=float(s[i])
#s[0] s[1] s[2] s[3] s[4] s[5]
x1=s[0]
x2=s[2]
x3=s[4]
y1=s[1]
y2=s[3]
y3=s[5]
def dis(x1,y1,x2,y2):
    return m.sqrt((x2-x1)**2+(y2-y1)**2)
print('%.2f' % (dis(x1,y1,x2,y2)+dis(x2,y2,x3,y3)+dis(x1,y1,x3,y3)))

by 平凡的夜空 @ 2020-06-24 20:53:05

@一只爬行者 谢谢您,刚和台湾朋友聊天忘记改回来了,谢谢你们!真的感谢


by impuk @ 2020-06-24 20:53:30

原来会简体字啊……

/kk/kk


by WanderingTrader @ 2020-06-24 21:13:15

繁体好评


by FZzzz @ 2020-06-24 21:14:25


by FZzzz @ 2020-06-24 21:14:38

@咬胖酒花


by k3v1n070828 @ 2020-06-24 21:32:57

@皎胖洒花


by k3v1n070828 @ 2020-06-24 21:33:13

.


by zhoukangyang @ 2020-06-24 21:56:23

@皎胖洒花


上一页 |