Run ID:151452
提交时间:2026-04-12 14:23:02
#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<=100000000;x++){ if(s-2*x==n){ cout<<x<<" "<<i; return 0; } } } return 0; }