結果

問題 No.410 出会い
ユーザー sorag
提出日時 2022-08-09 12:23:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 406 bytes
コンパイル時間 619 ms
コンパイル使用メモリ 77,992 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 18:37:34
合計ジャッジ時間 1,383 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>
#include<string>
#include<queue>
#include<math.h>
#define ll long long
#define P pair<double,double>
#define lP pait<ll,ll>
using namespace std;
int main() {
    P p,q;
    double ans;
    cin>>p.first>>p.second>>q.first>>q.second;
    ans=abs(p.first-q.first)+abs(p.second-q.second);
    printf("%.6lf",ans/2);
    cout<<endl;
    return 0;
}
     


0