結果
| 問題 | No.236 鴛鴦茶 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-07-05 22:24:46 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 302 bytes |
| 記録 | |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 75,440 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-17 06:18:13 |
| 合計ジャッジ時間 | 1,318 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
using namespace std;
int main() {
int a, b, x, y;
cin >> a >> b >> x >> y;
double k = min(1.0 * x / a, 1.0 * y / b);
double ans = k * (a + b);
printf("%.9f\n", ans);
return 0;
}