cantor表 纯模拟
2025-10-22 16:39:40
发布于:浙江
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int n,q,s=1,p;
int main(){
cin>>n;
q=n;
while(q>0){p=q;q-=s;s++;}
if(s%2!=0)cout<<p<<"/"<<s-p<<endl;
else cout<<s-p<<"/"<<p<<endl;
return 0;
}
这里空空如也






有帮助,赞一个