結果

問題 No.236 鴛鴦茶
ユーザー koba-e964
提出日時 2015-07-06 12:36:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 1,186 ms
コンパイル使用メモリ 158,248 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-08 01:19:43
合計ジャッジ時間 1,990 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;cin>>a>>b>>x>>y;
cout << min(x/a,y/b) * (a+b) << endl;
}
0