結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2020-01-18 15:18:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 2,368 ms |
コンパイル使用メモリ | 190,616 KB |
最終ジャッジ日時 | 2025-01-08 20:02:32 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ double a, b, x ,y, ans; cin >> a >> b >> x >> y; ans = min( x + x * (b/a), y + y * (a/b) ); printf( "%.8f\n", ans ); return 0; }