10 条题解

  • -2
    @ 2022-2-8 10:45:40

    #include <stdio.h> #include <math.h> #include using namespace std; int main() { double x1,x2,y1,y2; cin >> x1 >> y1 >> x2 >>y2; double a, b; a = x1 - x2; b = y1 - y2; double c; c = a * a + b * b; c = sqrt(c); printf("%.3lf\n",c); }

    信息

    ID
    823
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    530
    已通过
    230
    上传者