結果

問題 No.410 出会い
ユーザー makonagix
提出日時 2017-01-04 00:11:36
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 525 ms
コンパイル使用メモリ 58,716 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-16 06:45:08
合計ジャッジ時間 1,667 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	float a, b, c, d;
	cin >> a >> b >> c >> d;
	float e = abs(a - c);
	float f = abs(b - d);
	float ans = (e + f) / 2;
	cout << ans << endl;
	return 0;
}
0