Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3685 杨洋杰 Cantor表 C++ Accepted 0 MS 264 KB 202 2024-06-22 18:05:23

Tests(10/10):


Code:

#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; }