結果

問題 No.306 さいたま2008
ユーザー Mcpu3Mcpu3
提出日時 2018-09-13 23:42:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 1,893 ms
コンパイル使用メモリ 71,876 KB
実行使用メモリ 56,508 KB
最終ジャッジ日時 2023-09-13 20:02:08
合計ジャッジ時間 6,254 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
56,308 KB
testcase_01 AC 136 ms
56,032 KB
testcase_02 AC 137 ms
56,148 KB
testcase_03 AC 134 ms
56,332 KB
testcase_04 AC 135 ms
56,400 KB
testcase_05 AC 136 ms
56,032 KB
testcase_06 AC 136 ms
56,056 KB
testcase_07 AC 135 ms
56,156 KB
testcase_08 AC 134 ms
55,628 KB
testcase_09 AC 136 ms
55,924 KB
testcase_10 AC 134 ms
56,064 KB
testcase_11 AC 135 ms
56,316 KB
testcase_12 AC 136 ms
56,156 KB
testcase_13 AC 134 ms
56,000 KB
testcase_14 AC 137 ms
56,356 KB
testcase_15 AC 136 ms
56,508 KB
testcase_16 AC 138 ms
56,016 KB
testcase_17 AC 135 ms
55,976 KB
testcase_18 AC 135 ms
54,396 KB
testcase_19 AC 135 ms
56,308 KB
testcase_20 AC 136 ms
55,932 KB
testcase_21 AC 136 ms
56,192 KB
testcase_22 AC 137 ms
55,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        double xa=sc.nextDouble(),ya=sc.nextDouble(),xb=sc.nextDouble(),yb=sc.nextDouble();
        sc.close();
        System.out.print((xb*ya+xa*yb)/(xa+xb));
    }
}
0