题目
C++代码:
#includeusing namespace std; int main(){ int n,tot=0; cin>>n; for(int i=1;;i++){ tot=tot+i; int sum=i+1; if(tot>=n){ int temp=tot-i; temp=n-temp; if(i%2){ cout<<(sum-temp)<<'/'< 感谢大家的支持!您的支持是我最大的动力

题目
C++代码:
#includeusing namespace std; int main(){ int n,tot=0; cin>>n; for(int i=1;;i++){ tot=tot+i; int sum=i+1; if(tot>=n){ int temp=tot-i; temp=n-temp; if(i%2){ cout<<(sum-temp)<<'/'< 感谢大家的支持!您的支持是我最大的动力