結果

問題 No.236 鴛鴦茶
ユーザー yun_appyun_app
提出日時 2016-05-12 00:19:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 645 bytes
コンパイル時間 2,112 ms
コンパイル使用メモリ 75,680 KB
実行使用メモリ 50,732 KB
最終ジャッジ日時 2024-04-15 15:15:43
合計ジャッジ時間 4,663 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
50,608 KB
testcase_01 AC 56 ms
50,608 KB
testcase_02 AC 62 ms
50,460 KB
testcase_03 AC 58 ms
50,604 KB
testcase_04 AC 58 ms
50,692 KB
testcase_05 AC 56 ms
50,640 KB
testcase_06 AC 59 ms
50,732 KB
testcase_07 WA -
testcase_08 AC 57 ms
50,712 KB
testcase_09 AC 57 ms
50,524 KB
testcase_10 AC 57 ms
50,580 KB
testcase_11 WA -
testcase_12 AC 57 ms
50,564 KB
testcase_13 AC 58 ms
50,476 KB
testcase_14 AC 56 ms
50,544 KB
testcase_15 AC 58 ms
50,304 KB
testcase_16 AC 57 ms
50,712 KB
testcase_17 AC 59 ms
50,200 KB
testcase_18 AC 57 ms
50,632 KB
testcase_19 AC 57 ms
50,428 KB
testcase_20 AC 56 ms
50,436 KB
testcase_21 AC 58 ms
50,356 KB
testcase_22 AC 57 ms
50,540 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Ideone{
    public static void main(String[] args) throws Exception{
        // your code goes here
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] lines = br.readLine().split(" ");
        double a = Double.parseDouble(lines[0]);
        double b = Double.parseDouble(lines[1]);
        double x = Double.parseDouble(lines[2]);
        double y = Double.parseDouble(lines[3]);
        
        if(a*y > b*x){
            System.out.println(x + x*a/b);
        }else{
            System.out.println(y + y*a/b);
        }
    }
}
0