結果

問題 No.410 出会い
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-12-04 10:11:45
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 2,102 ms
コンパイル使用メモリ 71,424 KB
実行使用メモリ 57,912 KB
最終ジャッジ日時 2023-08-18 14:05:08
合計ジャッジ時間 6,752 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 141 ms
56,052 KB
testcase_12 AC 140 ms
56,068 KB
testcase_13 AC 140 ms
55,932 KB
testcase_14 AC 140 ms
55,732 KB
testcase_15 AC 141 ms
55,672 KB
testcase_16 AC 140 ms
55,832 KB
testcase_17 AC 144 ms
56,452 KB
testcase_18 AC 141 ms
56,024 KB
testcase_19 AC 140 ms
56,228 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 139 ms
55,996 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)+Math.abs(py)+Math.abs(qx)+Math.abs(qy))/2);
	}
}
0