Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
129470 | 龚梓嘉 | 两点间距离计算 | C++ | 解答错误 | 80 | 0 MS | 252 KB | 224 | 2024-01-27 08:38:07 |
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ double x1,x2,y1,y2,AB; cin>>x1>>y1>>x2>>y2; AB=sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))); printf ("%.0f\n",AB); return 0; }