2

芝士不拉丝  •  1年前


include<bits/stdc++.h>

using namespace std; int main(){

long n,x,w;
cin>>n;
for(int x=1;x<100000;x++)
for(int w=1;w<100000;w++){
	if((x*x+x-6*w)==2*n){
		 cout<<w<<" "<<x<<endl;
		 return 0;
	}
}	

}


评论:

请先登录,才能进行评论