일단 간단하게
 
n = int(input())
 
arr=list(map(int,input().split()))
 
#print(arr)
#print(arr[0],arr[n-1])
 
for i in range(n-1,-1,-1):
  print(arr[i], end=" ")

+ Recent posts