結果

問題 No.410 出会い
ユーザー TatsuDX
提出日時 2016-09-03 14:28:08
言語 Java
(openjdk 23)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 3,335 ms
コンパイル使用メモリ 75,020 KB
実行使用メモリ 41,972 KB
最終ジャッジ日時 2024-06-28 11:14:07
合計ジャッジ時間 7,754 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double px, py, qx, qy, ans;
		px = sc.nextDouble();
		py = sc.nextDouble();
		qx = sc.nextDouble();
		qy = sc.nextDouble();
		ans = Math.abs((px - qx) / 2) + Math.abs((py - qy) / 2);
		System.out.println(ans);
	}
}
0