Run ID:151453
提交时间:2026-04-12 14:23:22
#include<bits/stdc++.h> using namespace std; int main(){ int x,i=0,n,s=0; cin>>n; while(1){ i++; s+=i; for(x=1;x<=10000;x++){ if(s-2*x==n){ cout<<x<<" "<<i; return 0; } } } return 0; }