代码求调:
#include<bits/stdc++.h> using namespace std; int N,i=1; int main(){ cin>>N; while(N>i){ N-=i; i++; } i=i-N+1; cout<<N<<"/"<<i; return 0; }