結果

問題 No.410 出会い
ユーザー Tsukasa_Type
提出日時 2018-02-10 21:17:28
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 4,381 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 56,372 KB
最終ジャッジ日時 2024-11-06 07:21:16
合計ジャッジ時間 8,484 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 14 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int x1 = sc.nextInt();
		int y1 = sc.nextInt();
		int x2 = sc.nextInt();
		int y2 = sc.nextInt();
		double ans = (Math.abs(x2-x1)+Math.abs(y2-y1))/2;
		System.out.println(ans);
	}
}
0