結果

問題 No.410 出会い
ユーザー Mcpu3Mcpu3
提出日時 2018-06-22 20:31:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 1,849 ms
コンパイル使用メモリ 71,360 KB
実行使用メモリ 58,404 KB
最終ジャッジ日時 2023-09-13 08:05:55
合計ジャッジ時間 6,154 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
56,292 KB
testcase_01 AC 132 ms
56,304 KB
testcase_02 AC 135 ms
56,172 KB
testcase_03 AC 132 ms
56,512 KB
testcase_04 AC 132 ms
58,404 KB
testcase_05 AC 133 ms
56,692 KB
testcase_06 AC 132 ms
56,116 KB
testcase_07 AC 132 ms
56,052 KB
testcase_08 AC 132 ms
55,992 KB
testcase_09 AC 133 ms
56,304 KB
testcase_10 AC 134 ms
56,116 KB
testcase_11 AC 132 ms
56,504 KB
testcase_12 AC 130 ms
55,992 KB
testcase_13 AC 132 ms
55,912 KB
testcase_14 AC 133 ms
56,096 KB
testcase_15 AC 134 ms
55,820 KB
testcase_16 AC 134 ms
56,344 KB
testcase_17 AC 132 ms
56,028 KB
testcase_18 AC 134 ms
56,432 KB
testcase_19 AC 133 ms
56,420 KB
testcase_20 AC 132 ms
55,832 KB
testcase_21 AC 137 ms
55,720 KB
testcase_22 AC 137 ms
55,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no410{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		double a,b,c,d,t;
		a=stdIn.nextDouble();
		b=stdIn.nextDouble();
		c=stdIn.nextDouble();
		d=stdIn.nextDouble();
		if(c-a<0) a-=c;
		else a=c-a;
		if(d-b<0) b-=d;
		else b=d-b;
		System.out.print((a+b)/2.);
	}
}
0