就是一道模拟:Control表,不知道为什么我老是报错
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, i = 1, j = 2, bs, fx = 1;
cin >> n;
while(n >= 0){
n--;
if(fx == 1 && j == 1 && i % 2 == 1){
fx = 0;
i++;
continue;
}
if(fx == 0 && i == 1 && j % 2 == 0){
fx = 1;
j++;
continue;
}
if(fx == 0)
j++, i--;
if(fx == 1)
j--, i++;
}
cout << j << "/" << i;
return 0;
}