题解 2773: 计算线段长度

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

编写题解 2773: 计算线段长度,python超简单

解题思路:详见下列代码注意事项:如果不考虑两种情况,那么会出现运行错误,感觉题目有歧义,没有明确指出。。参考代码:frommathimportsqrt#读取输入并转换为浮点数列表number=list(map(float,input().split()))#根据输入的数量处理不同的情况iflen(nu

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double xa, xb, ya, yb,distance,length……

题解 2773: 计算线段长度--C

摘要:解题思路:double注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){    double x1, y1, x2, y2;    doub……

2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<cmath> using namespace std; int mai……

题解 2773: 计算线段长度

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double xa,ya,xb,yb;    cin……