結果

問題 No.410 出会い
ユーザー snrnsidy
提出日時 2021-09-15 02:15:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 2,067 ms
コンパイル使用メモリ 192,860 KB
最終ジャッジ日時 2025-01-24 14:03:47
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	long long int x1,x2,y1,y2;

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

	long long int dx = abs(x1-x2);
	long long int dy = abs(y1-y2);

	long double res = (dx/2.0) + (dy/2.0);

	cout << res << '\n';
	
	return 0;
}
0