Problem:


Reversing Numbers

  Write a program which reads a sequence and prints it in the reverse order.

Input

The input is given in the following format:

n
a1 a2 . . . an

n is the size of the sequence and ai is the ith element of the sequence.

Output

  Print the reversed sequence in a line. Print a single space character between adjacent elements (Note that your program should not put a space character after the last element).

Constraints

n ≤ 100

0 ≤ ai < 1000

Sample Input 1

5
1 2 3 4 5

Sample Output 1

5 4 3 2 1

Sample Input 2

8
3 3 4 4 5 8 7 9

Sample Output 2

9 7 8 5 4 4 3 3

Note

      解説      

	



Sample input:
5
1 2 3 4 5


Sample output:
5 4 3 2 1

Submission status: Runtime Error

Solution code:
n = int(raw_input())
a = map(int, raw_input().split())

for i in range(n):
  print "%d" %(a[n-i])

Submission status: Runtime Error

Solution code:
n = int(raw_input())
a = map(int, raw_input().split())

for i in range(n):
  print a[n-i],

Submission status: Runtime Error

Solution code:
import sys
n = input()
m = map(int, raw_input().split())
m2 = [0 for i in xrange(n)]

for i in xrange(n):
    m2[n-i-1] = m[i]

for i in xrange(n):
    stdout.write(str(m2[i]))
    stdout.write(" ")

Submission status: Runtime Error

Solution code:
n = raw_input()
a = map(int, raw_input().split())
 
for i in range(n):
    print a[-i-1],

Submission status: Runtime Error

Solution code:
while True:
    sute = map(int,raw_input().split()) 
    num = map(int,raw_input().split())
    for i in range(len(num) - 1):
        print "%d" % num[len(num) - i - 1],
    print num[0]

Submission status: Runtime Error

Solution code:
n=input()
a=map(int,raw_input().split())
a.reverse()
print(' '.join(a))

Submission status: Runtime Error

Solution code:
class ReversingNumbers:
    def output(self, a):
        s = ""
        a.reverse()
        for i in range(len(a)-1):
            s += "%d " % (a[i])
        s += "%d" % (a.index(len(a)-1))
        print s

if __name__ == "__main__":
    rn = ReversingNumbers()
    raw_input()
    a = map(int, raw_input().split())
    rn.output(a)

Submission status: Runtime Error

Solution code:
n = input()
lst = map(int,raw_input().split())
for i in range(n):
	print lst[n-1+i],

Submission status: Runtime Error

Solution code:
n = input()
lst = map(int,raw_input().split())
print " ".join(lst[::-1])

Submission status: Runtime Error

Solution code:
n = input()
lst = map(int,raw_input().split())
print ' '.join(lst[::-1])

Submission status: Runtime Error

Solution code:
import sys

n = input()
ai = raw_input()
ai = map(int, ai.split())

for i in reversed(range(1, n)):
	sys.stdout.write(str(ai[i])+" ")
print ai[i-1]

Submission status: Runtime Error

Solution code:
input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))a

Submission status: Runtime Error

Solution code:
 input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))

Submission status: Runtime Error

Solution code:
n = int(input())
list = [i for i in input().split()].reverse()
print(" ".join(list))

Submission status: Runtime Error

Solution code:
x = int(input())
y = [int(i) for i in input().split()]
print("{0}".format(x3),end='')
for i in range(x-2, 0-1, -1):
    print(' {0}'.format(y[i]), end='')

Submission status: Runtime Error

Solution code:
input()
a = input().split()
a.reverse()
print(" "join(a))

Submission status: Runtime Error

Solution code:
put()
a = input().split()
a.reverse()
print(" ".join(a))

Submission status: Runtime Error

Solution code:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
    ]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

print("\n".join(data))

Submission status: Runtime Error

Solution code:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
    ]
 
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)

Submission status: Runtime Error

Solution code:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
]
 
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)

Submission status: Runtime Error

Solution code:
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13 + 1)
       ]
 
count = int(input())
for c in range(count):
    card = input()
    data.remove(card)
 
for c in data:
    print(c)

Submission status: Runtime Error

Solution code:
n = int(input())
l = map(int, input().split())

print(n)
print(l[::-1])

Submission status: Runtime Error

Solution code:
n = int(input())
l = map(int, input().split())
 
print (n)
print (l[::-1])

Submission status: Runtime Error

Solution code:
n = int(input())
l = map(int, input().split())
 
print(l[::-1])

Submission status: Runtime Error

Solution code:
n = int(input())
l = map(int, input().split())
print(l[::-1])

Submission status: Runtime Error

Solution code:
n = input()
a = map(int, raw_input().split())
for i in range(len(a)-1,-1,-1):
    print a[i],

Submission status: Runtime Error

Solution code:
n = input()
a = map(int, raw_input().split())
for i in range(len(a)-1,-1,-1):
    print a[i],
print ""

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split()))
a.reverse()
a = list(map(str,a)
print(" ".join(a))

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
for i in range(0, n):
 print(a[n - i], end = ' ')
print()

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
for i in range(0, n):
 print(a[n - 1 - i], end = ' ')
print()

Submission status: Runtime Error

Solution code:
while True:
    
    l = input().split()
    h = int(l[0])
    w = int(l[1])

    if h == 0 and w ==0:
        break
    
    flag = 0

    for i in range(h*(w+1)):
        if (i+1) % (w+1) == 0:
            print("")
            if w % 2 == 0:
                flag += 1
            if i == h*(w+1)-1:
                print("")


        else:
            if flag % 2 == 0:
             print("#", end="")
             flag += 1
            else:
             print(".", end="")
             flag += 1

Submission status: Runtime Error

Solution code:
n = input()
a = map(int,raw_input().split())
b = a.reverse()
print b.replace("[","").replace(","," ").replace("[","")

Submission status: Runtime Error

Solution code:
n = int(input())
x = input().split()
x_int = [int(i) for i in x]
y = list(range(n))

for i in x_int:
     y[-i] = i
print(y)

Submission status: Runtime Error

Solution code:
n = int(input())
x = input().split()
x_int = [int(i) for i in x]
y = list(range(n))

for i in range(n):
     y[-i-1] = x_int[i]
for i in y:
    print('{} 'format(i),end = '')

Submission status: Runtime Error

Solution code:
n = int(input())
x = input().split()
x_int = [int(i) for i in x]
y = list(range(n))

for i in range(n):
     y[-i-1] = x_int[i]
for i in y:
    print('{} 'format(i),end = '')
print()

Submission status: Runtime Error

Solution code:
#coding:utf-8
import numpy as np

n=int(input())
x=list(map(int,input().split()))

for i in x[::-1]:
    print(str(i)+" ",end="")

print("")

Submission status: Runtime Error

Solution code:
print(a[::-1].rsplit('\n',1)[0])

Submission status: Runtime Error

Solution code:
i = input()
i = int(i)
lis = []
for j in range(i):
    f = input()
    f = int(f)
    lis.append(f)


lis.sort(reverse=True)
print(lis)

Submission status: Runtime Error

Solution code:
input()
a = input().split()
print(" ".join(a.reverse()))

Submission status: Runtime Error

Solution code:
n = int(input())
num = list(map(int,input().split()))
for i in range(n):
    print(num[n-i-1],end = " ")

Submission status: Runtime Error

Solution code:
n = int(input())
num = list(map(int,input().split()))
num.reverse()
for i in range(n-1):
    print(num[i],end = " ")
print(num[n-1])

Submission status: Runtime Error

Solution code:
N = int(input())
a = [input() for i in range(N)]

b = []
j = N-1

while j >= 0:
	b.append(a[j])
	j -= 1
	
print(b)

Submission status: Runtime Error

Solution code:
n = int(input())
inp = map(int,input().split())
inp.reverse()
for i in range(n-1):
	print(inp[i]," ",sep="",end="")
print(inp[n-1])

Submission status: Runtime Error

Solution code:
n = int(input())
inp = map(int,input().split())
inp.reverse()
print(inp[n-1])

Submission status: Runtime Error

Solution code:
n = int(input())
inp = map(int,input().split())
inp.reverse()
for i in range(n-1):
	print(inp[i]," ",sep="",end="")

Submission status: Runtime Error

Solution code:
n = int(input)
a = [int(i) for i in input().split()]
for i in range(n,-1,-1):
    if i == 0:
        print(a[i])
    else:
        print(a[i],end=" ")

Submission status: Runtime Error

Solution code:
n = int(input())
a_list = list(map(int,input().split))
reversed_a_list = a_list.reverse()
a = ' '.join(reversed_a_list)
print(a)

Submission status: Runtime Error

Solution code:
n = input()
a_list == list(map(int,input().split()))
if n == len(a_list):
    r_list = reversed(a_list)
    numbers = ' '.join(a_list)
    print(numbers)

Submission status: Runtime Error

Solution code:
input()
line = reverse(input().split())
print(' '.join(line))

Submission status: Runtime Error

Solution code:
count = int(input())
array = [int(i) for i in input().split(" ")]

a = array.reverse()
print(" ".join(a))

Submission status: Runtime Error

Solution code:
n = int(input())
n_list = [int(i) for i in input().split(" ")]
n_list.reverse()
print(' '.join(map(str, a)))

Submission status: Runtime Error

Solution code:
dummy = input()
print(' '.join(input().split().reverse()))

Submission status: Runtime Error

Solution code:
N = input()
a = [input() for i in range(N)]
print (a.reverse())

Submission status: Runtime Error

Solution code:
N = input()
a = [input() for i in range(N)]
a.reverse()
print(a)

Submission status: Runtime Error

Solution code:
N = input()
a = [input() for i in range(N)]
print(a[::-1])

Submission status: Runtime Error

Solution code:
N = input()
a = [input().split() for i in range(N)]
print(a[::-1])

Submission status: Runtime Error

Solution code:
n = input()
print(" ".join(input().split()).reveres)

Submission status: Runtime Error

Solution code:
n = int(input())
print(" ".join(input().split()).reveres())

Submission status: Runtime Error

Solution code:
#??°???????????¢

n = input()

l = raw_input().split()

for i in range(n):
    l.append(i)

l.reverse()

print l

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
a=a[::-1]
print(" ".join(a))

Submission status: Runtime Error

Solution code:
first = input()
seconds = list(map(int,input().split()))

print("".join(seconds.reverse()))

Submission status: Runtime Error

Solution code:
first = input()
seconds = list(map(int,input().split()))

print(" ".join(seconds.reverse()))

Submission status: Runtime Error

Solution code:
 n=input()
 a=map(int,raw_input().split())
 a=reverse
 print a

Submission status: Runtime Error

Solution code:
 n=input()
 a=map(int,raw_input().split())
 a=reverse()

for i in range(n)
     print a[i]

Submission status: Runtime Error

Solution code:
 n=input()
 a=map(int,raw_input().split())
 a=reverse()

 print a

Submission status: Runtime Error

Solution code:
n=input()
a=map(int,raw_input().split())
a=reverse

for i in n:
	print a

Submission status: Runtime Error

Solution code:
n=input()
a=map(int,raw_input().split())
a=reverse

for i in n:
    print a

Submission status: Runtime Error

Solution code:
n=input()
a=map(int,raw_input().split())
a.reverse()

for i in n:
    print a

Submission status: Runtime Error

Solution code:
n=input()
a=map(int,raw_input().split())
a.reverse()

for i in n:
    print i

Submission status: Runtime Error

Solution code:
input()
a=list(int,input())
print(a[::-1])

Submission status: Runtime Error

Solution code:
n=int(input())
print(*list(reversed(map(int, input().split()))))

Submission status: Runtime Error

Solution code:
N = int(input())
Arr = map(int, input().split())
for i in range(N):
 if i=N-1:
  print(Arr[0])
 else:
  print(Arr[N-1-i] + " ")

Submission status: Runtime Error

Solution code:
N = int(input())
Arr = list(map(int, input().split()))
for i in range(N):
 if i=N-1:
  print(Arr[0])
 else:
  print(Arr[N-1-i] + " ")

Submission status: Runtime Error

Solution code:
N = int(input())
Arr = list(map(int, input().split()))
for i in range(N):
 if i==N-1:
  print(Arr[0])
 else:
  print(Arr[N-1-i] + " ")

Submission status: Runtime Error

Solution code:
n = raw_input()
array = raw_input().split()
for i in reversed(range(n)):
    print i,

Submission status: Runtime Error

Solution code:
a = []
for _ in range(int(input())):
    a.append(input())
a.reverse()
print(" ".join(a))

Submission status: Runtime Error

Solution code:
import sys
while True:
    n=0
    s=sys.stdin.readline()
    if s=='0\n': break
    for i in range(len(s)-1):
        n+=int(s[i])
    print(n)

Submission status: Runtime Error

Solution code:
N = input()
a = [input() for i in range(N)]

while i > 0:
    print(a[i], end=" ")
    i -= 1
else:
    print(a[i])

Submission status: Runtime Error

Solution code:
N = int(input())
a = [input() for i in range(N)]

while i > 0:
    print(a[i], end=" ")
    i -= 1
else:
    print(a[i])

Submission status: Runtime Error

Solution code:
def main():
    n = int(input())
    a = map(int, input().split())
    print(" ".join(sorted(a, reverse=True)))

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
n = int(input())
lst = []
for i in range(0,n):
    lst.append(int(input()))
print(lst.sort())

Submission status: Runtime Error

Solution code:
n = int(input))
print(" ".join(list(map(int, input().split()))[::-1]))

Submission status: Runtime Error

Solution code:
n = int(input)
lst = list(map(int, input().split()))
print(" ".join(lst[::-1]))

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
for i in range(n-1) :
    print("{} ".format(a[n-i]),end="")
print("{}".format(a[0]))

Submission status: Runtime Error

Solution code:

n=int(input())

a=input().split()


for i in range(n):
    out=a[(n-i)]
    print(str(out))
print()

Submission status: Runtime Error

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = sys.stdin.readlines()

for i in range(1,length + 1):
    print(num_seq[length - i],end=' ')
print(num_seq[0],end='')

Submission status: Runtime Error

Solution code:
import sys

length = int(sys.stdin.readline())
num_seq = sys.stdin.readlines()

for i in range(1,length):
    print(num_seq[length - i],end=' ')
print(num_seq[0],end='')

Submission status: Runtime Error

Solution code:
input()

print(‘ ‘.join(input().split()[::-1]))

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
r.reverse()
str = ""
for d in a:
    str += "%d "%(d)
print(str[:-1])

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(len(r)):
    r[i]=int(r[i])
    r.reverse()
print(::-1)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(len(r)):
    r[i]=int(r[i])
    i.reverse()
print(::-1)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(len(r)):
    i.reverse()
print(::-1)

Submission status: Runtime Error

Solution code:
n=int(input())
r=input().split()
for i in range(len(r)):
    i.reverse()
print(i)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

n = int(input())
a = list(map(int , input().split()))
a.reverse()

for i in len(a):
    print('{0} '.format(a[i]))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

n = int(input())
a = list(map(int, input().split()))
a.reverse()

for i in n:
    print('{0} '.format(a[i]))

Submission status: Runtime Error

Solution code:
num + input()
jun = input().split()
gyaku = reversed(jun)
print(*gyaku)

Submission status: Runtime Error

Solution code:
e=[input()for _ in[0]*int(input())]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Submission status: Runtime Error

Solution code:
n=int(input())
e=[input()for _ in[0]*n]
for s in"SHCD":
 for r in range(1,14):
  if f'{s} {r}'not in e:print(s,r)

Submission status: Runtime Error

Solution code:
n,x = map(int, raw_input().split())
if n = 0 : break
x.reverse()
print(x)

Submission status: Runtime Error

Solution code:
n = raw_input().split()
x = map(int, raw_input().split())
 
if n = 0 : break
x.reverse()
print(x)

Submission status: Runtime Error

Solution code:
n=raw_input().split()
x=map(int, raw_input().split())

if n == 0 : break
x.reverse()
print(x)

Submission status: Runtime Error

Solution code:
n=int(input())
a=input().split()
for i in range(n-1,0,-1):
    print(a[i],end=' ')
print(a[i-1])

Submission status: Runtime Error

Solution code:
#include <iostream>

using namespace std;

int main()
{
    int a[1000],n,i;
    cin >> n;
    for(i=0;i<n;i++){
        cin >> a[i];
    }
    i--;
    cout << a[i];
    for(int ii=i-1; ii >= -1;ii--) {
        if(ii==-1)break;
        cout << " " << a[ii];
    }
    cout << endl;
}

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
for i in range(n ,-1, -1):
    print("{0}".format(a[i]),end="")
    if i == n:
        pass
    else:
        print(" ",end="")

Submission status: Runtime Error

Solution code:
a = int(input())
n = int(input().split())
n2 = int(input().split())
for i in range(a):
    n[i] = n2[a-i-1]

for i in range(a):
    if i !=(a-1):
        print("{} ".format(n2[i]), end = "")
    else:
        print("{}".format(n2[i]))

Submission status: Runtime Error

Solution code:
ec    7340 KB     46 bytes     
?
1
2
input()
print(' '.join(input().split()[::-1]))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8

x = input()
a = input().split()
a = a[::-1]
for i range(len(a)):
   b += a[i]+" "
print(b[-1])

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8

x = input()
a = input().split()
a = a[::-1]
for i range(len(a)):
   b += a[i]+" "
print(b[:-1])

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8

x = input()
a = input().split()
a = a[::-1]
for i in range(len(a)):
   b += a[i]+" "
print(b[:-1])

Submission status: Runtime Error

Solution code:
input()
l = map(int, raw_input().split())
l.reverse()
print(" ".join(tuple(l)))

Submission status: Runtime Error

Solution code:
input()
l = map(int, raw_input().split())
l.reverse()
print(" ".join(map(str, l))

Submission status: Runtime Error

Solution code:
while True:
    n=int(raw_input())
    m=map(int, raw_input().split())
    m.sort()
    h=-1
    for i in xrange(n):
        print str(m[h]),
        h-=1
    print

Submission status: Runtime Error

Solution code:
input()
a = map(int, raw_input().split())

for i in range(a.length(), 1):
    print a[i-1],

Submission status: Runtime Error

Solution code:
input()
a = map(int, raw_input().split())

for i in range(length(a), 1):
    print a[i-1],

Submission status: Runtime Error

Solution code:
input()
a = map(int, raw_input().split())

a.reverse()
for i in range(0, a.len()-1):
    print a[i],

Submission status: Runtime Error

Solution code:
r = int(input())
a = map(int, raw_input().split())

a.reverse()
prnt = ""
for i in range(0, r-2):
    prnt += a[i]
    prnt += " "

prnt += a[r-1]
print prnt

Submission status: Runtime Error

Solution code:
a = []
for i in range(input()):
    a.append(input())
print sorted(a,reverse = True)

Submission status: Runtime Error

Solution code:
n=raw_input()
for i in range(n):
   a[i] = raw_input()
for i in range(n):
 print (a[i].reverse)

Submission status: WA: Presentation Error

Solution code:
n = int(input())
data = list(map(int,input().split()))
data.reverse()
for x in data:
    print(" "+str(x),end="")
print()

Submission status: WA: Presentation Error

Solution code:
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
for i in list:
    print(i,end=" ")

Submission status: WA: Presentation Error

Solution code:
N=int(input())
s_str=input().split()
s_int=[int(s) for s in s_str]
list=[]
s_int.reverse()
for i in s_int:
    list.append(i)
for i in list:
    print(str(i),end=" ")

Submission status: WA: Presentation Error

Solution code:
n=int(input())
list=list(map(int,input().split(" ")))
list.reverse()
for i in range(n):
    print(str(list[i])+" ",end="")
print()

Submission status: WA: Presentation Error

Solution code:
N = int(input())

i = list(map(int, input().split()))
i.reverse()

for idx, val in enumerate(i):
    if idx == N-1:
        print(val, end='')
    else:
        print(val, ' ', sep = '', end='')

Submission status: WA: Presentation Error

Solution code:
input()
ls = input().split()

for i in reversed(ls):
  print(i, end = ' ')
print()

Submission status: WA: Presentation Error

Solution code:
input()
ls = input().split()

for i in reversed(ls):
  print(i, end = ' ')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
s = input().split()
for i in (reversed(s)):
    print(i,end=" ")

Submission status: WA: Presentation Error

Solution code:
n = int(input())

a = list(map(int,input().split()))

a.reverse()
for i,elem in enumerate(a):
    if i != 0:
        print (" ", end='')
    print (elem, end='')

Submission status: WA: Presentation Error

Solution code:
num = int(input())
data = list(map(int, input().split()))

lengh = len(data)
for tmp in range(lengh):
	if tmp == lengh-1:
		print(data.pop(-1))
	else:
		print(data.pop(-1), end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()
s = ''
for i in l:
    s += str(i) + ' '
s.rstrip()
print(s)

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()
s = ''
for i in l:
    s += str(i) + ' '
s.rstrip()
print(s, end='')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()
s = ''
for i in range(n):
    if i >= 1:
        print(' ', end='')
    print(l[i], end='')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a.reverse()
for i in range(n):
    if i >= 1:
        print(" ", end = '')
    print(a[i], end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))

for i in l[::-1]:
    print(i, end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))

for i in l[::-1]:
    print(i, end=" ")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))

for i in l[::-1]:
    print("%d " %i, end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))

for i in l[::-1]:
    print("%d " %i, end="")
print()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()

for i in range(n):
    if i > 1:
        print(" ", end="")
    print(l[i], end="")
print()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()

for i in range(n):
    if i > 1:
        print(" ", end="")
    print(l[i], end="")
print

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
l.reverse()

for i in range(n):
    if i >= 1:
        print(" ", end="")
    print(l[i], end="")
print

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l =list(map(int,input().split()))

for value in reversed(l):
    print(f"{value} ",end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
num = list(map(int, input().split()))

counter = 0
for i in (reversed(num)):
    if counter == 0:
        print(i, end="")
    elif counter == n-1:
        print(" {}".format(i))
    else:
        print(" {}".format(i), end="")
    counter += 1

Submission status: WA: Presentation Error

Solution code:
n = int(input())
num = list(map(int, input().split()))

if n == 1:
    print(num[0])
else:
    counter = 0
    for i in (reversed(num)):
        if counter == 0:
            print(i, end="")
        elif counter == n-1:
            print(" {}".format(i))
        else:
            print(" {}".format(i), end="")
            counter += 1

Submission status: WA: Presentation Error

Solution code:
cnt = int(input())
li = list(map(int,input().split()))
re_li = li[::-1]
for i in range(cnt):
    print(re_li[i],end=' ')

Submission status: WA: Presentation Error

Solution code:
n = int(input())

y =list(map(int,input().split()))
x = list()

for i in range(n-1,-1,-1):
    arry = y[i]
    x.append(arry)

for i in range(n):
    print(x[i],end=' ')

Submission status: WA: Presentation Error

Solution code:
n = int(input())

y =list(map(int,input().split()))
x = list()

for i in range(n-1,-1,-1):
    arry = y[i]
    x.append(arry)

for i in range(n):
    if(i == n-1):
        print(x[i],end='')
    else:
        print(x[i],end=' ')

Submission status: WA: Presentation Error

Solution code:
n=raw_input()
ls=map(int,raw_input().split())
ls.reverse()
for i in range(len(ls)):
    print ls[i],
print ''

Submission status: WA: Presentation Error

Solution code:
input()

data = input().split()
data.reverse()
[print(x, end=' ') for x in data]
print()

Submission status: WA: Presentation Error

Solution code:
import sys

n = input()
a = map(int, raw_input().split())

for i in range(n):
    sys.stdout.write(str(a[n-i-1]))
    sys.stdout.write(" ")
print

Submission status: WA: Presentation Error

Solution code:
n = int(input())
ns = [int(i) for i in input().split()]
ns.reverse()
if len(ns) > n:
  del ns[:(len(ns) - n)]
for i in ns:
  if i != ns[-1]:
    print(i,end=' ')
  else:
    print(i,end='')

Submission status: WA: Presentation Error

Solution code:
input()

a = input().split()

a.reverse()
print(''.join(a))

Submission status: WA: Presentation Error

Solution code:
input()
data = input().split()
data.reverse()
print('  '.join(data))

Submission status: WA: Presentation Error

Solution code:
class itp1_6a:
    def reverse(self,n,a):
        s=""
        for i in range(1,n+1):
            if i==n+1:
                s+=str(a[-1*i])
            else:
                s+=str(a[-1*i])+" "
        print s    
if __name__=="__main__":
    n=input()
    a=map(int,raw_input().split(" "))
    run=itp1_6a()
    run.reverse(n,a)

Submission status: WA: Presentation Error

Solution code:
import sys

n = int( sys.stdin.readline() )
nums = sys.stdin.readline().rstrip().split( " " )
nums.reverse()
output = []
for i in range( n ):
	if i < n:
		output.append( "{} ".format( nums[i] ) )
print( "".join( output ) )

Submission status: WA: Presentation Error

Solution code:
def main():
    n = input()
    num = list(map(int, input().split()))
    num.reverse()
    for i in range(len(num)):
        print("{} ".format(num[i]), end="")
    print("\n")



if __name__=="__main__":
    main()

Submission status: WA: Presentation Error

Solution code:
def main():
    n = input()
    num = list(map(int, input().split()))
    num.reverse()
    for i in range(len(num)):
        print("{} ".format(num[i]), end="")




if __name__=="__main__":
    main()

Submission status: WA: Presentation Error

Solution code:
import sys
n = input()
a_n = map(int,raw_input().split())
j = -1
for i in range(n):
	print (' '),
	sys.stdout.write(str(a_n[j]))
	j -= 1

Submission status: WA: Presentation Error

Solution code:
import sys
n = input()
a_n = map(int,raw_input().split())
j = -1
for i in range(n):
	print (' '),
	sys.stdout.write(str(a_n[j]))
	j -= 1
print('')

Submission status: WA: Presentation Error

Solution code:
input()
print(*reversed([x for x in input().split()]), end='')

Submission status: WA: Presentation Error

Solution code:
p = input()
n = raw_input().split()
n.reverse()
s = ''
for i in xrange(len(n)):
    s += n[i] + ' '
print s

Submission status: WA: Presentation Error

Solution code:
import sys
n = input()
a = map(int, raw_input().split())
for i in range(n):
  sys.stdout.write('%d ' % a[n-i-1])

Submission status: WA: Presentation Error

Solution code:
import sys
n = input()
a = map(int, raw_input().split())
for i in range(n):
  sys.stdout.write('%d' % a[n-i-1])
  if i != n-1:
    sys.stdout.write(' ')

Submission status: WA: Presentation Error

Solution code:
import sys
import math

n = input()
a = map(int, raw_input().split())
a.reverse()

for i in xrange(n) :
    sys.stdout.write(str(a[i]))
    if i < n-1 :
        sys.stdout.write(" ")

Submission status: WA: Presentation Error

Solution code:
input()
numbers = input().split()
r_numbers = ''.join(reversed(numbers))
print(" ".join(r_numbers))

Submission status: WA: Presentation Error

Solution code:
import sys
n = input()
a = map(int, raw_input().split())
for i in range(n):
    sys.stdout.write(str(a[n-1-i]))
    if i != n-1:
        sys.stdout.write(' ')

Submission status: WA: Presentation Error

Solution code:
x = int(input())
y = [int(i) for i in input().split()]
for i in range(x-1, 0-1, -1):
    print('{0} '.format(y[i]), end='')

Submission status: WA: Presentation Error

Solution code:
x = int(input())
y = [int(i) for i in input().split()]
print("{0}".format(y[-1]),end='')
for i in range(x-2, 0-1, -1):
    print(' {0}'.format(y[i]), end='')

Submission status: WA: Presentation Error

Solution code:
input()
a = input().split()
a.reverse()
for b in a:
    print(b, end=' ')

Submission status: WA: Presentation Error

Solution code:
a = int(input())
x = input()
y = x.split(' ')
c =[]
for i in range(a):
    c.append(y[(a-1)-i])
b = ' '.join(c)
print(' '+b)

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(str, input().split()))
a.reverse()
for i in range(n):
    if i == n - 1:
        print(a[i], end='')
    else:
        print(a[i] + ' ', end='')

Submission status: WA: Presentation Error

Solution code:
N = int(input())
a = []
a = list(map(int, input().split()))
for i in range(1, len(a)+1):
    print(a[-i], end =" ")

Submission status: WA: Presentation Error

Solution code:
N = int(input())
a = []
a = list(map(int, input().split()))
for i in range(1, len(a)+1):
    if i == (len(a)+1):
        print(a[-i], end ="")
    print(a[-i], end =" ")

Submission status: WA: Presentation Error

Solution code:
N = int(input())
a = []
a = list(map(int, input().split()))
for i in range(1, len(a)+1):
    if i != len(a):
        print(a[-i], end =" ")
    elif i == len(a): 
        print(a[-i], end ="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
while n > 0:
    print(a[n-1], end=' ')
    n -= 1
print()

Submission status: WA: Presentation Error

Solution code:
input()
x=[int(i) for i in input().split()]
for i in x[::-1]:
    print(i,end=" ")

Submission status: WA: Presentation Error

Solution code:
input()
x=[int(i) for i in input().split()]
for i in x[::-1]:
    print(i,end=" ")
print("")

Submission status: WA: Presentation Error

Solution code:
#coding: UTF-8
import math

def RN(n,a):
    ans=""
    for i in range(int(n)):
        ans+=a[int(n)-1-i]+" "
    print(ans.lstrip(" "))

if __name__=="__main__":
    n=input()
    a=input()
    List=a.split(" ")
    RN(n,List)