diff --git a/GUI 5 b/GUI 5 deleted file mode 100644 index febdc47..0000000 --- a/GUI 5 +++ /dev/null @@ -1,49 +0,0 @@ -#include -#include -#include -#include -#define ass 1e18 -#define MOD 1000000007 -#define mp make_pair -#define pb push_back -#define fi first -#define se second -#define boost ios_base::sync_with_stdio(false);cin.tie(NULL); -#define debug(x) cout << #x << ": " << x << endl; -#define debug2(x,y) cout<<#x<<": "<< x<< ", "<< #y<< ": "<< y<< endl; -#define debug3(x,y,z) cout<<#x<<": "<< x<< ", "<< #y<< ": "<< y<<" "<<#z<<" : "< -#include -using namespace __gnu_pbds; -#define ordered_set tree, rb_tree_tag,tree_order_statistics_node_update> -ll arr[200005]; - -int main() -{ - boost - ll t,b,p,f,h,c,maxi; - cin>>t; - while(t--) - { - cin>>b>>p>>f>>h>>c; - b=b/2; - if(h>=c) - { - maxi=min(b,p)*h; - b-=min(b,p); - if(b>0) - maxi+=min(b,f)*c; - } - else - { - maxi=min(b,f)*c; - b-=min(b,f); - if(b>0) - maxi+=min(b,p)*h; - } - cout<