結果

問題 No.410 出会い
ユーザー YOSHIYOSHI
提出日時 2021-03-16 21:50:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 555 bytes
コンパイル時間 3,643 ms
コンパイル使用メモリ 79,912 KB
実行使用メモリ 51,316 KB
最終ジャッジ日時 2024-04-26 04:10:22
合計ジャッジ時間 6,207 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
50,956 KB
testcase_01 AC 66 ms
51,232 KB
testcase_02 AC 66 ms
51,248 KB
testcase_03 AC 66 ms
51,300 KB
testcase_04 AC 66 ms
51,316 KB
testcase_05 AC 65 ms
51,120 KB
testcase_06 AC 65 ms
51,088 KB
testcase_07 AC 66 ms
51,308 KB
testcase_08 AC 65 ms
50,952 KB
testcase_09 AC 64 ms
51,036 KB
testcase_10 AC 65 ms
51,012 KB
testcase_11 AC 66 ms
51,300 KB
testcase_12 AC 66 ms
50,732 KB
testcase_13 AC 66 ms
51,064 KB
testcase_14 AC 66 ms
50,896 KB
testcase_15 AC 64 ms
51,208 KB
testcase_16 AC 65 ms
50,940 KB
testcase_17 AC 65 ms
50,808 KB
testcase_18 AC 64 ms
50,688 KB
testcase_19 AC 66 ms
51,292 KB
testcase_20 AC 65 ms
51,040 KB
testcase_21 AC 64 ms
50,976 KB
testcase_22 AC 65 ms
51,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.stream.Stream;

public class No00000410_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int[] p = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		int[] q = Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
		System.out.println((Math.abs(p[0] - q[0]) + Math.abs(p[1] - q[1])) / 2.0);
	}
}
0