結果

問題 No.410 出会い
ユーザー focus
提出日時 2018-01-17 15:01:21
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 56,156 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 06:40:51
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<string>
#include<cstdio>
using namespace std;
int main(){
    int x1,x2,y1,y2,a,b;
    cin >> x1 >> y1 >> x2 >> y2;
    if(x1-x2>0) a=x1-x2;
    else a=(x1-x2)*-1;
    if(y1-y2>0) b=y1-y2;
    else b=(y1-y2)*-1;
    cout << (double)(a+b)/2;
    return 0;
}
0