結果

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

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

#define REP(i, n) for(int i=0; i<(n); i++)

signed main()
{
    int A,B,X,Y;
    cin>>A>>B>>X>>Y;
    double coffee = min(1.0 * X, 1.0 * Y * A / B);
    printf("%.14f\n", coffee * (1.0 + 1.0 * B / A));
    return 0;
}
0