結果

問題 No.410 出会い
ユーザー yagi2yagi2
提出日時 2017-04-17 00:02:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 446 bytes
コンパイル時間 2,330 ms
コンパイル使用メモリ 71,668 KB
実行使用メモリ 58,080 KB
最終ジャッジ日時 2023-09-26 09:08:21
合計ジャッジ時間 7,163 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 117 ms
55,952 KB
testcase_12 AC 118 ms
55,736 KB
testcase_13 AC 118 ms
55,624 KB
testcase_14 AC 119 ms
56,208 KB
testcase_15 AC 117 ms
55,776 KB
testcase_16 AC 118 ms
55,752 KB
testcase_17 AC 117 ms
56,372 KB
testcase_18 AC 116 ms
55,856 KB
testcase_19 AC 117 ms
55,652 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 115 ms
55,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int Px = Math.abs(Integer.parseInt(sc.next()));
        int Py = Math.abs(Integer.parseInt(sc.next()));
        int Qx = Math.abs(Integer.parseInt(sc.next()));
        int Qy = Math.abs(Integer.parseInt(sc.next()));

        System.out.println(((double)(Px+Qx) / 2) + ((double)(Py+Qy) / 2));
    }
}
0