Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
129478 | Microsoft | 两点间距离计算 | C++ | 通过 | 100 | 0 MS | 256 KB | 182 | 2024-01-27 08:39:34 |
#include<bits/stdc++.h> using namespace std; int main(){ float x1,y1,x2,y2; int z; scanf("%f%f%f%f",&x1,&y1,&x2,&y2); z=sqrt(pow(x1-x2,2)+pow(y1-y2,2)); cout<<z; return 0; }