题解 2773: 计算线段长度 摘要:解题思路:无注意事项:不要抄袭,会遭报应的。参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie…… 题解列表 2023年12月10日 0 点赞 0 评论 270 浏览 评分:7.3
2773: 计算线段长度 摘要:```cpp #include #include #include using namespace std; int main() { double Xa,Ya,Xb,Yb; …… 题解列表 2023年01月11日 0 点赞 0 评论 392 浏览 评分:7.3
计算线段长度 摘要:解题思路:利用距离公式(Xa-Xb)*(Xa-Xb)+(Ya-Yb)*(Ya-Yb)开根号注意事项:用double,如果是float会错误82 导入#include<math…… 题解列表 2022年10月23日 0 点赞 0 评论 738 浏览 评分:8.4
2773计算线段长度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa, ya, xb, yb; scanf("%lf %lf\n%…… 题解列表 2024年10月26日 0 点赞 0 评论 315 浏览 评分:9.9
题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){ cin>>…… 题解列表 2023年12月21日 0 点赞 0 评论 249 浏览 评分:9.9
题解 2773: 计算线段长度 math.h头文件 摘要:??解题思路??此题中两点之间存在四种情况:1.两点 X坐标 相同表示为: Xa == Xb解:两点 Y坐标 差值的 绝对值2.两点 Y坐标 相同表示为: Ya == Yb解:两点 X坐标 差值的 绝…… 题解列表 2024年08月30日 0 点赞 0 评论 308 浏览 评分:9.9
计算线段长度(最标准解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,Xb,Yb; scanf("%lf %…… 题解列表 2024年08月02日 0 点赞 0 评论 468 浏览 评分:9.9
调用Math.pow()幂函数平方 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2024年03月15日 2 点赞 0 评论 341 浏览 评分:9.9
python编写题解 2773: 计算线段长度 摘要:解题思路:两点间距离公式注意事项:测试数据都是一组,不是两组。参考代码:from math import sqrt number = input().split() if len(number) …… 题解列表 2024年03月07日 2 点赞 4 评论 810 浏览 评分:9.9
计算线段长度C语言 摘要:解题思路:勾股定理注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ double xa,ya,xb,yb; scanf("%l…… 题解列表 2024年01月18日 0 点赞 0 评论 248 浏览 评分:9.9