我知道这题很水,但我还是错了 、
#include<bits/stdc++.h>
using namespace std;
long long n;
long long a,t,r;
long long b,o,q;
long long c,x,w;
long long s[3];
int main()
{
cin>>n>>a>>t>>b>>o>>c>>x;
while(r<n)
{
r+=a;
s[0]+=t;
}
while(q<n)
{
q+=b;
s[1]+=o;
}
while(w<n)
{
w+c;
s[2]+=x;
}
sort(s,s+3);
cout<<s[0]<<endl;
return 0;
}
** _
帮个忙,磕头_ **