P5735 【深基7.例1】距离函数(python3实现)
【深基7.例1】距離函數 - 洛谷
"""P5735 【深基7.例1】距離函數(python3實現) https://www.luogu.com.cn/problem/P5735"""import mathdef dis(x1,y1,x2,y2):return math.sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) )x1,y1=list(map(float,input().split() ) )x2,y2=list(map(float,input().split() ) )x3,y3=list(map(float,input().split() ) )dis1=dis(x1,y1,x2,y2)dis2=dis(x2, y2, x3, y3)dis3= dis(x3, y3, x1, y1)ans=dis1+dis2+dis3print("%.2f"%ans)《深入淺出程序設計競賽 - 基礎篇》題單
https://www.luogu.com.cn/blog/177435/IPC-problems
P5703 【深基2.例5】蘋果采購(python3實現)
https://blog.csdn.net/dllglvzhenfeng/article/details/122690555
P5703 【深基2.例5】蘋果采購(python3實現)--2022.01.29
https://blog.csdn.net/dllglvzhenfeng/article/details/122745163
P5704 【深基2.例6】字母轉換(python3實現)
https://blog.csdn.net/dllglvzhenfeng/article/details/122690663
P5704 【深基2.例6】字母轉換(python3實現)-2022.01.29
https://blog.csdn.net/dllglvzhenfeng/article/details/122745360
P5705 【深基2.例7】數字反轉(python3實現)方法一
https://blog.csdn.net/dllglvzhenfeng/article/details/122691059
P5705 【深基2.例7】數字反轉(python3實現)方法二
https://blog.csdn.net/dllglvzhenfeng/article/details/122691194
?
總結
以上是生活随笔為你收集整理的P5735 【深基7.例1】距离函数(python3实现)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 锦标赛排序
- 下一篇: android 热修复 需要重启应用嘛?