結果

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

ソースコード

diff #

#include <iostream>
#include<algorithm>
#include<iomanip>
using namespace std;

int main() {
	double a,b,c,d;
	cin>>a>>b>>c>>d;
	a-=c;b-=d;
	if(a<0)a*=-1.0;
	if(b<0)b*=-1.0;
	cout<<fixed<<setprecision(2)<<a/2+b/2<<endl;
	return 0;
}
0