結果

問題 No.236 鴛鴦茶
ユーザー syoken_desuka
提出日時 2015-07-05 22:43:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 697 bytes
コンパイル時間 674 ms
コンパイル使用メモリ 82,316 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 12:50:06
合計ジャッジ時間 1,398 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <ostream>
#include<complex>
#include <cmath>
#include <iostream>
#include <stack>
#include <fstream>
#include <queue>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <string>
using namespace std;
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define ALLOF(c) (c).begin(), (c).end()
typedef long long ll;



int main()
{
    double x,y,a,b;
    double ans;
    cin >> a >> b >> x >> y;
    double n = a/(a+b);
    double m = b/(a+b);
    printf("%f\n",min(x/n,y/m));
    return 0;
}
0