結果

問題 No.410 出会い
ユーザー YOSHIYOSHI
提出日時 2021-03-16 21:54:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 504 bytes
コンパイル時間 3,582 ms
コンパイル使用メモリ 74,632 KB
実行使用メモリ 50,468 KB
最終ジャッジ日時 2024-04-26 04:14:19
合計ジャッジ時間 5,773 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
50,468 KB
testcase_01 AC 54 ms
50,132 KB
testcase_02 AC 55 ms
50,444 KB
testcase_03 AC 55 ms
50,316 KB
testcase_04 AC 55 ms
50,416 KB
testcase_05 AC 56 ms
50,280 KB
testcase_06 AC 57 ms
50,156 KB
testcase_07 AC 56 ms
50,368 KB
testcase_08 AC 57 ms
50,340 KB
testcase_09 AC 57 ms
50,144 KB
testcase_10 AC 57 ms
50,052 KB
testcase_11 AC 58 ms
50,132 KB
testcase_12 AC 60 ms
50,352 KB
testcase_13 AC 56 ms
50,276 KB
testcase_14 AC 56 ms
49,912 KB
testcase_15 AC 56 ms
49,988 KB
testcase_16 AC 57 ms
50,380 KB
testcase_17 AC 59 ms
50,424 KB
testcase_18 AC 58 ms
49,920 KB
testcase_19 AC 60 ms
50,352 KB
testcase_20 AC 58 ms
50,368 KB
testcase_21 AC 57 ms
50,456 KB
testcase_22 AC 59 ms
50,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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