結果

問題 No.410 出会い
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-10 21:17:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 2,141 ms
コンパイル使用メモリ 73,648 KB
実行使用メモリ 41,580 KB
最終ジャッジ日時 2024-04-24 00:46:49
合計ジャッジ時間 5,604 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
41,240 KB
testcase_01 WA -
testcase_02 AC 107 ms
40,132 KB
testcase_03 AC 115 ms
41,312 KB
testcase_04 AC 106 ms
40,268 KB
testcase_05 AC 115 ms
41,288 KB
testcase_06 AC 113 ms
41,164 KB
testcase_07 WA -
testcase_08 AC 115 ms
41,236 KB
testcase_09 AC 111 ms
41,056 KB
testcase_10 AC 105 ms
40,132 KB
testcase_11 AC 113 ms
40,144 KB
testcase_12 WA -
testcase_13 AC 110 ms
40,260 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 112 ms
40,968 KB
testcase_18 AC 105 ms
40,308 KB
testcase_19 AC 116 ms
41,372 KB
testcase_20 AC 103 ms
40,276 KB
testcase_21 AC 118 ms
41,132 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

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