为什么只有28分 99窝 QWQ
查看原帖
为什么只有28分 99窝 QWQ
1367844
DCzzy楼主2024/10/18 20:34
#include<iostream>
using namespace std;
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int k=1,n;
	long long x;
	cin>>n;
	while(1){
		for(x=100000;x>=1;x-=1){
			if((7*x+21*k)*52==n){
				cout<<x<<endl;
				cout<<k;k++;
				return 0;
			}
		}
	}
	return 0;
}
2024/10/18 20:34
加载中...