結果

問題 No.410 出会い
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 15:30:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 2,724 ms
コンパイル使用メモリ 71,172 KB
実行使用メモリ 55,844 KB
最終ジャッジ日時 2023-09-10 20:16:28
合計ジャッジ時間 6,557 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,520 KB
testcase_01 AC 121 ms
55,520 KB
testcase_02 AC 121 ms
55,584 KB
testcase_03 AC 120 ms
55,316 KB
testcase_04 AC 119 ms
55,496 KB
testcase_05 AC 120 ms
55,704 KB
testcase_06 AC 120 ms
55,552 KB
testcase_07 AC 122 ms
55,580 KB
testcase_08 AC 120 ms
55,568 KB
testcase_09 AC 123 ms
55,448 KB
testcase_10 AC 122 ms
55,352 KB
testcase_11 AC 122 ms
55,588 KB
testcase_12 AC 121 ms
55,460 KB
testcase_13 AC 123 ms
55,440 KB
testcase_14 AC 126 ms
55,440 KB
testcase_15 AC 122 ms
55,844 KB
testcase_16 AC 121 ms
55,792 KB
testcase_17 AC 122 ms
55,508 KB
testcase_18 AC 125 ms
55,664 KB
testcase_19 AC 122 ms
55,812 KB
testcase_20 AC 121 ms
55,744 KB
testcase_21 AC 121 ms
55,484 KB
testcase_22 AC 120 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static Scanner s=new Scanner(System.in);

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}
	private static void solve(){
		int px=s.nextInt(),py=s.nextInt(),qx=s.nextInt(),qy=s.nextInt();
		System.out.println((Math.abs(px-qx)+Math.abs(py-qy))/2.0);
	}
}
0