結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-26 00:10:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 460 bytes |
| コンパイル時間 | 594 ms |
| コンパイル使用メモリ | 79,772 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 13:08:58 |
| 合計ジャッジ時間 | 1,437 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include<iomanip>
//#include<bits/stdc++.h>
using namespace std;
int main() {
double a,b,c,d;
cin>>a>>b>>c>>d;
double ans=0;
if(b*c>=a*d)ans=d+d*a/b;
else ans=c+c*b/a;
cout<< setprecision(30);
cout<<ans<<endl;
return 0;
}