/* #include <iostream> using namespace std; void a(int n){ cout<<n; } int main(){ int N; cin>>N; a(N); system("pause"); return 0; } */ #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<<"-->"<<2*n<<","<<2*n+1<<endl; cout<<2*n-1<<","<<2*n<<"-->"<<n<<","<<n+1<<endl; a(n-1); } } int main(){ int N; cin>>N; a(N); system("pause"); return 0; }
标签:std,pause,return,int,namespace,system,棋子,移动 From: https://www.cnblogs.com/As10016/p/17588794.html