結果

問題 No.410 出会い
ユーザー tsunabittsunabit
提出日時 2018-06-27 09:47:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 5,461 ms
コンパイル使用メモリ 72,492 KB
実行使用メモリ 39,900 KB
最終ジャッジ日時 2023-09-13 14:26:30
合計ジャッジ時間 9,359 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
39,432 KB
testcase_01 AC 111 ms
39,464 KB
testcase_02 AC 111 ms
39,744 KB
testcase_03 AC 112 ms
39,276 KB
testcase_04 AC 110 ms
39,336 KB
testcase_05 AC 110 ms
39,176 KB
testcase_06 AC 112 ms
39,268 KB
testcase_07 AC 112 ms
39,244 KB
testcase_08 AC 111 ms
39,216 KB
testcase_09 AC 113 ms
39,776 KB
testcase_10 AC 109 ms
39,272 KB
testcase_11 AC 118 ms
39,100 KB
testcase_12 AC 113 ms
39,348 KB
testcase_13 AC 113 ms
39,432 KB
testcase_14 AC 112 ms
39,900 KB
testcase_15 AC 110 ms
39,596 KB
testcase_16 AC 117 ms
39,048 KB
testcase_17 AC 113 ms
39,436 KB
testcase_18 AC 113 ms
39,752 KB
testcase_19 AC 112 ms
39,448 KB
testcase_20 AC 111 ms
39,600 KB
testcase_21 AC 113 ms
39,804 KB
testcase_22 AC 115 ms
39,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;

public class No410 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int px = sc.nextInt(), py = sc.nextInt();
		int qx = sc.nextInt(), qy = sc.nextInt();
		System.out.println((Math.abs(px - qx) + Math.abs(py - qy)) / 2.0);
	}
}
0