結果

問題 No.410 出会い
ユーザー prog470
提出日時 2016-09-29 17:36:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 394 bytes
コンパイル時間 874 ms
コンパイル使用メモリ 87,376 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 11:16:21
合計ジャッジ時間 1,509 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
#include <cstdio>
#include <cmath>

using namespace std;

int main() {

	double px, py, qx, qy;
	cin >> px >> py >> qx >> qy;

	double ans = ( fabs(px-qx) + fabs(py - qy) ) / 2.0;

	printf("%.15f\n",ans);

	return 0;
}
0