結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2017-09-20 21:14:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 555 ms |
コンパイル使用メモリ | 69,120 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 13:13:33 |
合計ジャッジ時間 | 1,354 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <iostream> #include <iomanip> typedef long long ll; int main(void) { std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed << std::setprecision(8); int a, b, x, y; std::cin >> a >> b >> x >> y; std::cout << std::min(x * 1.0 / a * (a+b), y * 1.0 / b * (a+b)) << std::endl; return 0; }