65分求助!超时TLE
查看原帖
65分求助!超时TLE
407994
_dhrxx_楼主2023/10/16 10:55
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int n,x,k=1;
int main()
{
	cin>>n;
	n/=364;
	while(1)
	{
		if(x+3*k==n)
		{
			cout<<x<<endl<<k;
			return 0;
		} 
		if(x<99) x++;
		else k++;
	}
}
2023/10/16 10:55
加载中...