#include<bits/stdc++.h>
using namespace std;
int main() {
int n, k = 1;
cin >> n;
while (n > k) {
n = n - k;
k++;
}
if (k % 2 == 0) {
cout << n << "/" << (k + 1 - n);
} else {
cout << k + 1 - n << "/" << n;
}
return 0;
}
P1014[NOIP1999 普及组] Cantor 表
于 2024-09-17 14:53:20 首次发布