#102: 解答


s219 (Liam)

學校 : 不指定學校
編號 : 254
來源 : [114.39.15.150]
最後登入時間 :
2025-12-13 14:27:48
t006. 106 基本認識 (兩點座標的距離) | From: [118.163.232.198] | 發表日期 : 2025-12-13 10:47

#include<bits/stdc++.h>

using namespace std;

int main()

{

    double dis;

    int x1,y1,x2,y2;

    cin>>x1>>y1>>x2>>y2;

 

    dis=sqrt(pow((x1-x2),2)+pow((y1-y2),2));

 

    printf("%.2f",dis);

    return 0;

}

 
ZeroJudge Forum