結果

問題 No.236 鴛鴦茶
ユーザー ldsyb
提出日時 2016-02-25 19:46:35
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 57,784 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 13:45:54
合計ジャッジ時間 1,334 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
   double a,b,x,y;
   cin >> a >> b >> x >> y;
   cout << min(x,y / b * a) + min(y,x / a * b) << endl;
}
0