6 条题解
-
-1240116zj钱宸熹 (230908zj) LV 7 @ 2023-12-03 14:24:35
#include <stdio.h> #include <math.h> int main() { double x1,y1,x2,y2,distance; scanf("%lf%lf%lf%lf", &x1,&y1,&x2,&y2); distance = sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) ); printf("%.3lf\n", distance); return 0; }
-
-12022-01-07 16:15:46@
#include <stdio.h>
#include <math.h>int main()
{
double x1,y1,x2,y2,distance;
scanf("%lf%lf%lf%lf", &x1,&y1,&x2,&y2);
distance = sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) );printf("%.3lf\n", distance);
return 0;
} -
-12021-12-27 09:48:31@
#include <stdio.h>
#include <math.h>int main()
{
double x1,y1,x2,y2,distance;
scanf("%lf%lf%lf%lf", &x1,&y1,&x2,&y2);
distance = sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) );printf("%.3lf\n", distance);
return 0;
} -
-12021-12-27 09:38:45@
#include <stdio.h>
#include <math.h>int main()
{
double x1,y1,x2,y2,distance;
scanf("%lf%lf%lf%lf", &x1,&y1,&x2,&y2);
distance = sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) );printf("%.3lf\n", distance);
return 0;
} -
-32021-12-27 09:35:59@
#include <stdio.h> #include <math.h> int main() { double x1,y1,x2,y2,distance; scanf("%lf%lf%lf%lf", &x1,&y1,&x2,&y2); distance = sqrt( (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) ); printf("%.3lf\n", distance); return 0; }
-
-132021-12-20 09:53:28@
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
double x1,y1,x2,y2,dis;
cin>>x1>>y1>>x2>>y2;
dis=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
cout<<fixed<<setprecision(3)dis<<endl;
return 0;
}
- 1
信息
- ID
- 1647
- 难度
- 3
- 分类
- (无)
- 标签
- 递交数
- 250
- 已通过
- 128
- 通过率
- 51%
- 被复制
- 7
- 上传者