結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2016-05-20 22:33:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 1,452 ms |
コンパイル使用メモリ | 167,604 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 13:04:41 |
合計ジャッジ時間 | 2,241 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); double a, b, x, y; cin >> a >> b >> x >> y; if( b*x/a < y ){ cout << fixed << setprecision(10) << x*(a+b)/a << endl; }else{ cout << fixed << setprecision(10) << y*(a+b)/b << endl; } return 0; }