私の解答
n = int(input())
li = [int(x) for x in input().split()]
new_li = li[::-1]
for ele in new_li:
print(ele)
解答例1
N = int(input())
A = [0] * N
values = input().split()
for i in range(N):
A[i] = int(values[i])
reversed_A = reversed(A)
for a in reversed_A:
print(a)
解答例2
N = int(input())
A = [0] * N
values = input().split()
for i in range(N):
A[i] = int(values[i])
A.reverse()
for a in A:
print(a)
解答例3
N = int(input())
A = [int(x) for x in input().split()]
for a in reversed(A):
print(a)