結果
| 問題 | 
                            No.236 鴛鴦茶
                             | 
                    
| コンテスト | |
| ユーザー | 
                             reew2n
                         | 
                    
| 提出日時 | 2015-07-05 22:26:50 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 446 bytes | 
| コンパイル時間 | 1,262 ms | 
| コンパイル使用メモリ | 157,332 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 12:49:01 | 
| 合計ジャッジ時間 | 2,058 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 23 | 
ソースコード
#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,b) FOR(i,0,b)
#define F first 
#define S second
#define PB push_back
#define BE(c) c.begin(),c.end()
using namespace std;
typedef long long LL;
typedef long double ut;
typedef vector<ut> VI;
const ut INF=1<<30;
const int SIZE=1<<12;
const ut eps=1e-9;
int main(){
	double A,B,X,Y;
	cin >>A >>B >> X >> Y;
	printf("%lf\n",min(A*Y,B*X)*(A+B)/(A*B));
	return 0;
}
            
            
            
        
            
reew2n