結果
問題 |
No.453 製薬会社
|
ユーザー |
|
提出日時 | 2020-10-05 18:26:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 1,823 ms |
コンパイル使用メモリ | 193,188 KB |
最終ジャッジ日時 | 2025-01-15 02:57:15 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ double c,d; cin>>c>>d; double ans=0,a,b; a=min(4*c/3,4*d); b=0; ans=max(ans,1000*a+2000*b); a=0; b=min(7*c/2,7*d/5); ans=max(ans,1000*a+2000*b); a=(5*c/7-2*d/7)*28/13; b=( -c/4+3*d/4)*28/13; if(a>=0 && b>=0) ans=max(ans,1000*a+2000*b); printf("%.9f\n",ans); return 0; }