結果

問題 No.410 出会い
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-12-05 12:35:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 2,679 ms
コンパイル使用メモリ 71,064 KB
実行使用メモリ 56,476 KB
最終ジャッジ日時 2023-09-10 20:14:21
合計ジャッジ時間 6,937 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
55,696 KB
testcase_01 AC 142 ms
55,904 KB
testcase_02 AC 142 ms
55,940 KB
testcase_03 AC 139 ms
56,236 KB
testcase_04 AC 137 ms
55,776 KB
testcase_05 AC 137 ms
55,964 KB
testcase_06 AC 141 ms
56,080 KB
testcase_07 AC 141 ms
55,860 KB
testcase_08 AC 141 ms
55,948 KB
testcase_09 AC 141 ms
55,916 KB
testcase_10 AC 140 ms
55,916 KB
testcase_11 AC 139 ms
56,364 KB
testcase_12 AC 141 ms
55,940 KB
testcase_13 AC 140 ms
55,740 KB
testcase_14 AC 138 ms
55,988 KB
testcase_15 AC 137 ms
56,476 KB
testcase_16 AC 138 ms
55,752 KB
testcase_17 AC 140 ms
55,752 KB
testcase_18 AC 138 ms
55,804 KB
testcase_19 AC 140 ms
55,580 KB
testcase_20 AC 138 ms
56,276 KB
testcase_21 AC 138 ms
56,360 KB
testcase_22 AC 139 ms
56,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

class Question410
{
	public static void main(String[] str){
		
		Scanner scan = new Scanner(System.in);
		
		double px = scan.nextDouble(), py = scan.nextDouble();
		double qx = scan.nextDouble(), qy = scan.nextDouble();
		
		System.out.println((Math.abs(px-qx)+Math.abs(py-qy))/2);
	}
}
0