题解
2025-10-04 12:32:39
发布于:广东
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int k = 1;
while(n > k){
n -= k;
k++;
}
if(k % 2 == 0){
cout << n << "/" << k - n + 1;
}else{
cout << k - n + 1 << "/" << n;
}
return 0;
}
这里空空如也







有帮助,赞一个