結果
| 問題 | 
                            No.236 鴛鴦茶
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fkwnw3_1243
                         | 
                    
| 提出日時 | 2017-09-17 12:17:38 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 55 ms / 2,000 ms | 
| コード長 | 632 bytes | 
| コンパイル時間 | 3,480 ms | 
| コンパイル使用メモリ | 73,704 KB | 
| 実行使用メモリ | 37,084 KB | 
| 最終ジャッジ日時 | 2024-06-28 13:13:31 | 
| 合計ジャッジ時間 | 5,394 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 23 | 
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;
public class No236 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        int A = Integer.parseInt(inputs[0]);
        int B = Integer.parseInt(inputs[1]);
        int X = Integer.parseInt(inputs[2]);
        int Y = Integer.parseInt(inputs[3]);
        System.out.println((A + B) * (float) Math.min(X / ((double) A), Y / ((double) B)));
    }
}
            
            
            
        
            
fkwnw3_1243