ac

zxx卢本伟  •  1年前


include<bits/stdc++.h>

using namespace std; int main() { int a,b,c,d,e,f,g,l,z,y,x,w,h,small=0,num=0; cin>>a>>b>>c>>d>>e>>f>>g; while(a%b!=0) {

a++;
num++;

} l=a/b; h=l*c; a=a-num; num=0; while(a%d!=0) {

a++;
num++;

} z=a/d; x=z*e; a=a-num; num=0; while(a%f!=0) {

a++;

} l=a/f; w=l*g; small=h; if(x<small) { small=x; } if(w<small) { small=w; } cout<<small<<endl; return 0; }


评论:

来吃我只因巴


明天见  •  1年前

给是想吃了


zxx卢本伟  •  1年前

请先登录,才能进行评论