結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2021-02-17 22:40:24 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 2,007 ms |
コンパイル使用メモリ | 191,348 KB |
最終ジャッジ日時 | 2025-01-18 21:55:06 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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<n;i++) int main(){ double a,b,x,y; cin>>a>>b>>x>>y; if(b*x>=a*y){ cout<<setprecision(18)<<y+(y/b)*a<<endl; } else{ cout<<setprecision(18)<<x+(x/a)*b<<endl; } return 0; }