#include<iostream>
using namespace std;
int main(){
int a[100];
int n,x,y;
while(cin>>n){
for(int i=0;i<n;i++){
cin>>a[i];
}
for(int i=0;i<n;i++){
cout<<a[i]<<" ";
}
cout<<endl;
int z=n/2;
x=n-1;
y=0;
for(int n1=0;n1<z;n1++){
if(y<z)y++;
for(int i1=x;i1>=y;i1--){
cout<<a[i1]<<" ";
}
cout<<endl;
if(x>z)x--;
for(int i2=y;i2<=x;i2++){
cout<<a[i2]<<" ";
}
cout<<endl;
}
}
return 0;
}
不知道錯在哪
用範例試都行的
誰可幫幫我阿~~T.T