結果
問題 |
No.236 鴛鴦茶
|
ユーザー |
![]() |
提出日時 | 2015-07-18 03:28:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 83,328 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-08 10:06:08 |
合計ジャッジ時間 | 1,344 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 7 WA * 16 |
ソースコード
#include <iostream> #include <algorithm> #include <cmath> #include <vector> #include <complex> #include <queue> #include <set> #include <map> #include <iomanip> using namespace std; #define REP(i,a,b) for(int i=a;i<(int)b;i++) #define rep(i,n) REP(i,0,n) typedef long long ll; int main() { int a, b, x, y; cin >> a >> b >> x >> y; cout << setprecision(10) << (a+b)*min(x/a, y/b) << endl; return 0; }