結果
| 問題 | 
                            No.236 鴛鴦茶
                             | 
                    
| コンテスト | |
| ユーザー | 
                             めうめう🎒
                         | 
                    
| 提出日時 | 2016-01-20 00:15:07 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 491 bytes | 
| コンパイル時間 | 619 ms | 
| コンパイル使用メモリ | 81,632 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 13:00:20 | 
| 合計ジャッジ時間 | 1,433 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 23 | 
ソースコード
#include <iostream>
#include <sstream>
#include <math.h>
#include <stack>
#include <set>
#include <algorithm>
#include <string>
#include <queue>
#include <stack>
#include <map>
#include <cstdio>
#include <vector>
#include <iomanip>
using namespace std;
#define INF (1 << 30)
#define INFLL (1LL << 60)
int main() {
	double a,b,x,y;
	cin >> a >> b >> x >> y;
	cout << fixed << setprecision(7);
	if(b*x/a < y){
		cout << b*x/a + x << endl;
	}else{
		cout << a*y/b + y << endl;
	}
	return 0;
}
            
            
            
        
            
めうめう🎒