結果

問題 No.410 出会い
ユーザー focus
提出日時 2018-01-30 19:54:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 669 ms
コンパイル使用メモリ 89,520 KB
最終ジャッジ日時 2025-01-05 08:04:19
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<string>
using namespace std;
int main(){
    int PX,PY,QX,QY,X,Y;
    cin >> PX >> PY >> QX >> QY;
    X = QX-PX;
    Y = QY-PY;
    if(X<0) X*=-1;
    if(Y<0) Y*=-1;
    double ans = ((X+Y)/2.0);
    cout << ans;
    return 0;
}
0