結果

問題 No.306 さいたま2008
ユーザー yun_appyun_app
提出日時 2016-05-16 15:07:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 729 bytes
コンパイル時間 2,098 ms
コンパイル使用メモリ 74,292 KB
実行使用メモリ 50,416 KB
最終ジャッジ日時 2024-04-15 22:26:44
合計ジャッジ時間 4,433 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
50,292 KB
testcase_01 AC 59 ms
50,020 KB
testcase_02 AC 60 ms
49,952 KB
testcase_03 AC 58 ms
50,236 KB
testcase_04 AC 58 ms
50,120 KB
testcase_05 AC 57 ms
50,248 KB
testcase_06 AC 59 ms
50,296 KB
testcase_07 AC 59 ms
50,288 KB
testcase_08 AC 60 ms
50,332 KB
testcase_09 AC 58 ms
50,208 KB
testcase_10 AC 58 ms
49,844 KB
testcase_11 AC 60 ms
49,988 KB
testcase_12 AC 58 ms
50,228 KB
testcase_13 AC 59 ms
50,392 KB
testcase_14 AC 58 ms
50,252 KB
testcase_15 AC 58 ms
50,264 KB
testcase_16 AC 58 ms
49,732 KB
testcase_17 AC 57 ms
50,232 KB
testcase_18 AC 58 ms
49,732 KB
testcase_19 AC 57 ms
50,276 KB
testcase_20 AC 60 ms
50,260 KB
testcase_21 AC 59 ms
50,136 KB
testcase_22 AC 60 ms
50,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
    public static void main (String[] args) throws java.lang.Exception
    {
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] line = br.readLine().split(" ");
        float a = Integer.parseInt(line[0]);
        float b = Integer.parseInt(line[1]);
        line = br.readLine().split(" ");
        float c = Integer.parseInt(line[0]);
        float d = Integer.parseInt(line[1]);
        
        
        System.out.println((b*c+a*d)/(a+c));
    }
}
0