请求加强数据,数据极水
查看原帖
请求加强数据,数据极水
755114
CD43楼主2022/8/19 14:47
#include <bits/stdc++.h>
using namespace std;
int main(){
	std::ios::sync_with_stdio(false);//去同步优化
	cin.tie(0);//缓存优化 
	cout.tie(0);//缓存优化
    long long a,c,q,p,r,x,t;
    cin>>a>>c>>p>>q>>r>>x;
    t=a;
    for(int i=a;i<c&&x>=p;i++)
    {
    	t++;
    	x-=p;
	}
	if(x<=q)
	{
		cout<<t;
		return 0;
	}
	x-=q;
	for(int i=0;x>=r;i++)
    {
    	t++;
    	x-=r;
	}
	cout<<t;
    return 0;
}

这么水的暴力代码都能过,这数据得有多水。 @小粉兔

2022/8/19 14:47
加载中...