結果

問題 No.410 出会い
ユーザー Mcpu3
提出日時 2018-06-22 17:58:20
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 30,080 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 18:02:15
合計ジャッジ時間 843 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(void)
{
	double x[2],y[2];
	int i;
	for(i=0;i<2;i++)scanf("%lf%lf",&x[i],&y[i]);
	printf("%f",(fabs(x[1]-x[0])+fabs(y[1]-y[0]))/2);
	return 0;
}
0