結果

問題 No.410 出会い
ユーザー TatsuDXTatsuDX
提出日時 2016-09-03 14:28:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 3,262 ms
コンパイル使用メモリ 72,404 KB
実行使用メモリ 57,796 KB
最終ジャッジ日時 2023-09-10 20:08:04
合計ジャッジ時間 7,707 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
55,640 KB
testcase_01 AC 141 ms
55,920 KB
testcase_02 AC 142 ms
56,324 KB
testcase_03 AC 142 ms
55,868 KB
testcase_04 AC 141 ms
55,696 KB
testcase_05 AC 143 ms
55,664 KB
testcase_06 AC 144 ms
57,676 KB
testcase_07 AC 143 ms
55,772 KB
testcase_08 AC 141 ms
55,904 KB
testcase_09 AC 146 ms
55,876 KB
testcase_10 AC 143 ms
55,976 KB
testcase_11 AC 142 ms
55,948 KB
testcase_12 AC 143 ms
55,928 KB
testcase_13 AC 143 ms
55,824 KB
testcase_14 AC 142 ms
56,044 KB
testcase_15 AC 139 ms
55,624 KB
testcase_16 AC 140 ms
55,936 KB
testcase_17 AC 140 ms
55,560 KB
testcase_18 AC 143 ms
55,704 KB
testcase_19 AC 143 ms
55,696 KB
testcase_20 AC 140 ms
57,796 KB
testcase_21 AC 141 ms
55,860 KB
testcase_22 AC 141 ms
56,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		double px, py, qx, qy, ans;
		px = sc.nextDouble();
		py = sc.nextDouble();
		qx = sc.nextDouble();
		qy = sc.nextDouble();
		ans = Math.abs((px - qx) / 2) + Math.abs((py - qy) / 2);
		System.out.println(ans);
	}
}
0