#include <iostream>
using namespace std;
int a(int n){
    if(n==4){
    cout<<"4,5-->9,10"<<endl;
    cout<<"8,9-->4,5"<<endl;
    cout<<"2,3->8,9"<<endl;
    cout<<"7,8-->2,3"<<endl;
    cout<<"1,2-->7,8"<<endl;
    }else{
    cout<<n<<","<<n+1<<"-->"<<n*2<<","<<2*n+1<<endl;
    cout<<n*2+1<<","<<n*2<<"-->"<<n<<","<<n+1<<endl;
    a(n-1);
    }
}
int main(int argc, char** argv) {
    system("pause");
    int N;
    cin>>N;
    a(N);
    return 0;
}

 

posted on 2023-07-28 19:58  爱吃泡面的皮卡  阅读(8)  评论(0编辑  收藏  举报