링크 : https://www.acmicpc.net/problem/1193
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int cnt = 0;
while(N > cnt){
N -= cnt;
cnt ++;
}
if(cnt % 2 != 0) cout << cnt-N+1 << "/" << N;
else cout << N << "/" << cnt-N+1;
return 0;
}