結果
| 問題 | No.236 鴛鴦茶 |
| コンテスト | |
| ユーザー |
Kaz_nl
|
| 提出日時 | 2017-09-03 18:18:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 250 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 61,180 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 13:13:25 |
| 合計ジャッジ時間 | 1,287 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
double a, b, x, y, ans;
cin >> a >> b >> x >> y;
if (x * b / a <= y) ans = x + x * b / a;
else ans = y + y * a / b;
cout << fixed << setprecision(8) << ans << endl;
}
Kaz_nl