結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
unyaunya
|
| 提出日時 | 2018-02-27 16:32:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 695 ms |
| コンパイル使用メモリ | 74,592 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 13:14:59 |
| 合計ジャッジ時間 | 1,463 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <math.h>
#include <vector>
#include <iomanip>
using namespace std;
#define P(x) cout << x << endl
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
double a,b,x,y,ans;
cin>>a>>b>>x>>y;
if(x*b/a <= y){
ans = x * (a+b)/a;
}else{
ans = y * (a+b)/b;
}
std::cout << std::setprecision(100) << ans;
}
unyaunya