java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月05日 0 点赞 0 评论 259 浏览 评分:9.9
计算线段长度C语言 摘要:解题思路:勾股定理注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ double xa,ya,xb,yb; scanf("%l…… 题解列表 2024年01月18日 0 点赞 0 评论 201 浏览 评分:9.9
python编写题解 2773: 计算线段长度 摘要:解题思路:两点间距离公式注意事项:测试数据都是一组,不是两组。参考代码:from math import sqrt number = input().split() if len(number) …… 题解列表 2024年03月07日 2 点赞 4 评论 709 浏览 评分:9.9
调用Math.pow()幂函数平方 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2024年03月15日 2 点赞 0 评论 281 浏览 评分:9.9
pow函数算平方根 摘要:解题思路:利用pow函数来求开方,与sqrt函数求开方同理注意事项:1/2是整型,等于零,应该用1.0/2参考代码:#include<iostream>using namespace std;#inc…… 题解列表 2023年05月01日 0 点赞 0 评论 286 浏览 评分:9.9
2773: 计算线段长度(制作不易,给个好评) 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb; cin>>xa>>ya>>…… 题解列表 2023年04月22日 0 点赞 0 评论 471 浏览 评分:9.9
计算线段长度(最标准解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,Xb,Yb; scanf("%lf %…… 题解列表 2024年08月02日 0 点赞 0 评论 414 浏览 评分:9.9
题解 2773: 计算线段长度 math.h头文件 摘要:??解题思路??此题中两点之间存在四种情况:1.两点 X坐标 相同表示为: Xa == Xb解:两点 Y坐标 差值的 绝对值2.两点 Y坐标 相同表示为: Ya == Yb解:两点 X坐标 差值的 绝…… 题解列表 2024年08月30日 0 点赞 0 评论 263 浏览 评分:9.9
2773计算线段长度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa, ya, xb, yb; scanf("%lf %lf\n%…… 题解列表 2024年10月26日 0 点赞 0 评论 258 浏览 评分:9.9
计算线段长度 摘要:解题思路:利用距离公式(Xa-Xb)*(Xa-Xb)+(Ya-Yb)*(Ya-Yb)开根号注意事项:用double,如果是float会错误82 导入#include<math…… 题解列表 2022年10月23日 0 点赞 0 评论 681 浏览 评分:8.4