题解 | #牛牛的线段#

牛牛的线段

http://www.nowcoder.com/practice/f72c56ed71664af082c921bf79861c85

BC48 牛牛的线段

思路:

step1:输入两个点;计算距离的平方并打印;

代码如下:

x1,y1 = list(map(int,input().split()))
x2,y2 = list(map(int,input().split()))
L = (x1-x2)**2 + (y1-y2)**2
print(L)
全部评论

相关推荐

理智的芭乐在查重:这边男朋友还有hc吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务