結果
問題 | No.236 鴛鴦茶 |
ユーザー |
|
提出日時 | 2021-04-15 21:56:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 2,044 ms |
コンパイル使用メモリ | 191,488 KB |
最終ジャッジ日時 | 2025-01-20 17:55:23 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; int main(){ double a,b,x,y; cin >> a >> b >> x >> y; cout << fixed << setprecision(15); if(a*y == b*x){ cout << x + y << endl; }else{ cout << min((a+b)*(x/a),(a+b)*(y/b)) << endl; } return 0; }