#include<stdio.h>
int main(){
int T,i,j,a[20];
scanf("%d",&T);
for(i=1;i<=T;i++){
int n;
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d",&a[j]);
}
for(i=n-1;i>0;i--){
printf("%d ",a[i]);
}
printf("%d\n",a[0]);
}
return 0;
}
原文地址:https://www.cnblogs.com/ars134419622/p/9926116.html
时间: 2024-10-09 12:37:17