Run ID:160204
提交时间:2026-09-13 10:03:00
#include<bits/stdc++.h> using namespace std; int main(){ int n,i=0,w=0; cin>>n; while(1){ w++; i+=w; for(int j=0;j<i;j++){ if(i-j*2==n){ cout<<j<<' '<<w<<endl; return 0; } } } return 0; }