結果
問題 |
No.236 鴛鴦茶
|
ユーザー |
![]() |
提出日時 | 2018-03-04 18:34:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 637 ms |
コンパイル使用メモリ | 74,868 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 13:15:11 |
合計ジャッジ時間 | 1,437 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
// No.236 鴛鴦茶 // https://yukicoder.me/problems/no/236 // #include <iostream> #include <cmath> #include <algorithm> #include <iomanip> using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); long double A, B, X, Y; cin >> A >> B >> X >> Y; long double coffee_limit = X * (A + B) / A; long double tea_limit = Y * (A + B) / B; cout << setprecision(12) << min(coffee_limit, tea_limit) << endl; }