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实现)相关推荐
- P3156 【深基15.例1】询问学号(20分)--python3实现
[深基15.例1]询问学号 - 洛谷 """P3156 [深基15.例1]询问学号(20分)--python3实现 https://www.luogu.com.cn/pr ...
- P5737 【深基7.例3】闰年展示(python3实现)
[深基7.例3]闰年展示 - 洛谷 """P5737 [深基7.例3]闰年展示(python3实现) https://www.luogu.com.cn/problem/P ...
- P5727 【深基5.例3】冰雹猜想(python3实现)
[深基5.例3]冰雹猜想 - 洛谷 """P5727 [深基5.例3]冰雹猜想(python3实现) https://www.luogu.com.cn/problem/P ...
- P5713 【深基3.例5】洛谷团队系统(python3实现)
https://www.luogu.com.cn/problem/P5713 """P5713 [深基3.例5]洛谷团队系统 https://www.luogu.com. ...
- P5703 【深基2.例5】苹果采购(python3实现)--2022.01.29
https://www.luogu.com.cn/problem/P5703 """ P5703 [深基2.例5]苹果采购 https://www.luogu.com.c ...
- P5707 【深基2.例12】上学迟到(python3实现)
https://www.luogu.com.cn/problem/P5707 """P5707 [深基2.例12]上学迟到 https://www.luogu.com.c ...
- P5714 【深基3.例7】肥胖问题--python3实现
https://www.luogu.com.cn/problem/P5715 """ P5714 [深基3.例7]肥胖问题--AC https://www.luogu.c ...
- P5715 【深基3.例8】三位数排序(python3实现)
https://www.luogu.com.cn/problem/P5715 """ P5715 [深基3.例8]三位数排序 https://www.luogu.com. ...
- P5712 【深基3.例4】Apples(python3实现)
https://www.luogu.com.cn/problem/P5712 """ P5712 [深基3.例4]Apples https://www.luogu.com ...
最新文章
- Don‘t support broadcast for binaryOp,
- 【Codeforces1327A】: Sum of Odd Intergers C/C++题解
- MANIFEST.MF文件的格式
- 第四代:大规模集成电路计算机
- jenkins 使用LDAP认证
- Linux卸载MariaDB
- HDU - 5934
- iPhone 13高端版所需120Hz刷新率屏幕或将由三星独家供应
- JDK1.8 LinkedHashMap源码
- python地图图表和3d_Python地图可视化三大秘密武器
- Hive 窗口函数的使用
- TongLINK/Q8.X版本的错误号整理
- GCC:warning:control reaches end of non-void function [-Wreturn-type] 、 Coredump的情况
- 现代密码学-密钥管理技术
- IEEE格式如何使用在线参考文献生成器
- python模拟按键包_今天玩点啥:利用python之PyUserInput实现模拟鼠标键盘操作,抢红包?聊天?自动下载?...
- [转]我的IT学习生活(搜藏)
- L1-030 一帮一(c++实现)
- HQChart使用教程11-如何把K线数据API替换成自己的API数据
- 2021年必备的最全人工智能书单