結果

問題 No.410 出会い
ユーザー shinwisteriashinwisteria
提出日時 2017-03-30 22:48:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 3,313 ms
コンパイル使用メモリ 71,796 KB
実行使用メモリ 56,460 KB
最終ジャッジ日時 2023-09-10 20:16:45
合計ジャッジ時間 7,779 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
56,276 KB
testcase_01 AC 140 ms
55,784 KB
testcase_02 AC 140 ms
55,676 KB
testcase_03 AC 141 ms
55,852 KB
testcase_04 AC 139 ms
55,740 KB
testcase_05 AC 140 ms
56,460 KB
testcase_06 AC 137 ms
55,952 KB
testcase_07 AC 138 ms
55,668 KB
testcase_08 AC 141 ms
55,656 KB
testcase_09 AC 139 ms
55,404 KB
testcase_10 AC 137 ms
53,504 KB
testcase_11 AC 140 ms
55,960 KB
testcase_12 AC 138 ms
55,660 KB
testcase_13 AC 140 ms
55,620 KB
testcase_14 AC 139 ms
55,404 KB
testcase_15 AC 141 ms
55,600 KB
testcase_16 AC 138 ms
55,204 KB
testcase_17 AC 140 ms
55,568 KB
testcase_18 AC 139 ms
55,552 KB
testcase_19 AC 144 ms
55,440 KB
testcase_20 AC 143 ms
55,556 KB
testcase_21 AC 144 ms
55,540 KB
testcase_22 AC 139 ms
55,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Deai {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		double Px = s.nextDouble(),Py = s.nextDouble(),Qx = s.nextDouble(),Qy = s.nextDouble();
		s.close();
		System.out.println((Math.abs(Px-Qx) + Math.abs(Py-Qy)) / 2);

	}

}
0