莫有输出!! 呜呜
查看原帖
莫有输出!! 呜呜
772244
XUYIEN2010RA楼主2022/8/22 09:59

我知道这题很水,但我还是错了


#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;
}

** _


帮个忙,磕头_ **

2022/8/22 09:59
加载中...