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: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = input()
a = map(str,raw_input().split())
num = ''
for i in reversed(a):
    num += " " + i 
print num

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = input()
a = map(int,raw_input().split())
a.reverse()
print "{}".format(str(a)).replace("[","").replace(","," ").replace("]","")

Submission status: WA: Presentation Error

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

print "{}".format(a[::-1]).replace("[","").replace(","," ").replace("]","")

Submission status: WA: Presentation Error

Solution code:
n= int(input())
l= list(map(int,input().split()))
m= 0
for x in range(n//2):
	l[m], l[n-1-m]= l[n-1-m], l[m]
	m+= 1
c=''
for e in l:
	c=c+' '+str(e)
print(c)

Submission status: WA: Presentation 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: WA: Presentation 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: WA: Presentation Error

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

for i in x:
    print(i,end=" ")

Submission status: WA: Presentation Error

Solution code:
#coding:utf-8
n=int(input())
x=list(map(int,input().split()))

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

print("")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
x = [int (z) for z in input().split(' ')]
tn = n - 1
for c in range(0,n):
    print("%d" % x[tn], end='')
    if c != n-1:
        print(' ', end='')
    tn -= 1

Submission status: WA: Presentation Error

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

a.reverse()

for i in a:
	print(i, end = " ")

print("")

Submission status: WA: Presentation Error

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

a.reverse()

for i in a:
	print(i, end = " ")

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

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!=n:
        print(a[i],end=" ")
    else:
        print(a[i])

Submission status: WA: Presentation Error

Solution code:
n = int(input())
i = 0
list_n = [n]

map_n = map(int, input().split())
list_n = list(map_n)

for value in reversed(list_n):
	print(value, end ='')
	if value != list_n[0]:
		print(' ', end = '')

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
number_list=[]
for i in range(2):
    a=input().split()
    number_list.append(a)
for n in range(int(number_list[0][0])):
    if n!=int(number_list[0][0]):
        print('{0} '.format(number_list[1][int(number_list[0][0])-1-n]), end='')
    else:
        print('{0}'.format(number_list[1][int(number_list[0][0])-1-n]), end='')

Submission status: WA: Presentation Error

Solution code:
number_list=[]
for i in range(2):
    a=input().split()
    number_list.append(a)
for n in range(int(number_list[0][0])):
    if n!=int(number_list[0][0])-1:
        print('{0} '.format(number_list[1][int(number_list[0][0])-1-n]), end='')
    else:
        print('{0}'.format(number_list[1][int(number_list[0][0])-1-n]), end='')

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = int(input())
text = input()

dataset = text.split()
reverse = []

for x in range(n):
    reverse.append(dataset[n-x-1])

for x in reverse:
    print(x + " ", end = '')

Submission status: WA: Presentation Error

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

for n in range( len(array) - 1, -1, -1):
    print(array[n], end = " ")

Submission status: WA: Presentation Error

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

for n in range( count - 1, -1, -1):
    print(array[n], end = " ")

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = (input().split())
a=""
for i in reversed(l): a+=' '+i
print(a)

Submission status: WA: Presentation Error

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
for i in range(1,num):
	print(" {}".format(input_data[i]),end='')

Submission status: WA: Presentation Error

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
for i in range(1,num):
	print(" {}".format(input_data[i]),end='')
print('\n')

Submission status: WA: Presentation Error

Solution code:
num=int(input())
input_data = [int(i) for i in input().split()]
input_data.reverse()
print("{}".format(input_data[0]),end='')
for i in range(1,num):
	print(" {}".format(input_data[i]),end='')
#print('\n')

Submission status: WA: Presentation Error

Solution code:
a=[]
n = int(input())

s = input().rstrip().split(" ")

for i in range(n):
    a.append(int(s[i]))
a=a[::-1]
for i in range(n):
    print(a[i],end=" ")

Submission status: WA: Presentation Error

Solution code:
i=0
j = int(input())
numlist = list(int(i) for i in input().split())

while i < j:
  print(numlist[j-i-1],end='')
  print(' ',end='')
  i += 1

print()

Submission status: WA: Presentation Error

Solution code:
nums=""
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    nums +=str(i)+" "
print(nums)

Submission status: WA: Presentation Error

Solution code:
nums=""
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    nums +=str(i)+" "
print(nums)
print("")

Submission status: WA: Presentation Error

Solution code:
nums=""
count=0
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" "                                                   
print(nums)

Submission status: WA: Presentation Error

Solution code:
nums=""
count=0
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" "                                                   
print(nums)
print("")

Submission status: WA: Presentation Error

Solution code:
nums=""
count=0
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" " 
    count+=1                                                 
print(nums)

Submission status: WA: Presentation Error

Solution code:
nums=""
count=0
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" " 
    count+=1                                                 
print(nums)
print("")

Submission status: WA: Presentation Error

Solution code:
nums=""
count=1
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" " 
    count+=1                                                 
print(nums)
print("")

Submission status: WA: Presentation Error

Solution code:
nums=""
count=1
a = input()
W = [int(x) for x in input().split()]
W.reverse()
for i in W:
    if count == a:
        nums+=str(i)
    else:
        nums +=str(i)+" " 
    count+=1                                                 
print(nums)

Submission status: WA: Presentation Error

Solution code:
input()
a = [eval(x) for x in input().split()]
for i in range(-1,-len(a)-1,-1):
	print(a[i],end = '\n' if i == -len(a)-1 else ' ')

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
input()
list1 = list(map(int, input().split()))
list1.reverse()
result=""
for i in range(0,len(list1)):
    result += str(list1[i])
    if list1 == i:
        pass
    else:
        result += " "
print(result)

Submission status: WA: Presentation Error

Solution code:
input()
list1 = list(map(int, input().split()))
list1.reverse()
result=""
for i in range(0,len(list1)):
    result += str(list1[i])
    if len(list1) == i:
        pass
    else:
        result += " "
print(result)

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = input()
numbers = input().split()
print(''.join(numbers[::-1]))

Submission status: WA: Presentation Error

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

print(nums[-1], end="")
for i in range(l-2, -1, -1):
    print(" {0}".format(nums[i]), end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(1, n + 1):
    print(I[n - idx] + ' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(n):
    I[idx] = int(I[idx])

for idx in range(1, n + 1):
    print(str(I[n - idx]) + ' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for i in range(n):
    I[i] = int(I[i])

for idx in range(1, n + 1):
    print(str(I[n - idx]) + ' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(n):
    I[idx] = int(I[idx])

for idx in range(1, n + 1):
    print(str(I[n - idx]), end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(n):
    I[idx] = int(I[idx])

for idx in range(1, n + 1):
    print(I[n - idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(0, int(n / 2)):
    w = I[idx]
    I[idx] = I[n - idx - 1]
    I[n - idx - 1] = w

for idx in range(n):
    print(I[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(n):
    print(I[n - idx - 1], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
I = input().split()

for idx in range(n - 1, -1, -1):
    print(I[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

for idx in range(n - 1, -1, -1):
    print(int(a[idx]), end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
import copy

n = int(input())
a = input().split()

o = [int(i) for i in a]

for idx in range(n - 1, -1, -1):
    print(o[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
import copy

n = int(input())
a = input().split()

o = [int(i) for i in a]

for idx in range(n):
    print(o[n - idx- 1], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
import copy

n = int(input())
a = input().split()

o = [int(i) for i in a]
for idx in range(0, int(n / 2)):
    w = o[idx]
    o[idx] = o[n - idx - 1]
    o[n - idx - 1] = w

for idx in range(n):
    print(o[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

o = [int(i) for i in a]
for idx in range(0, int(n / 2)):
    w = o[idx]
    o[idx] = o[n - idx - 1]
    o[n - idx - 1] = w

for idx in range(n):
    print(o[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

o = [int(i) for i in a]
for idx in range(0, int(n / 2)):
    w = o[idx]
    o[idx] = o[n - idx - 1]
    o[n - idx - 1] = w

for idx in range(n):
    print(o[idx], end = '')
    if idx == n:
        break

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

o = [int(i) for i in a]
for idx in range(0, int(n / 2)):
    w = o[idx]
    o[idx] = o[n - idx - 1]
    o[n - idx - 1] = w

for idx in range(n):
    print(o[idx], end = '')
    if idx == n:
        break
    print(' ', end = '')
print()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

o = [int(i) for i in a]
for idx in range(0, int(n / 2)):
    w = o[idx]
    o[idx] = o[n - idx - 1]
    o[n - idx - 1] = w

for idx in range(n):
    print(o[idx], end = '')
    if idx == n - 1:
        break
    print(' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())

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

a.reverse()

for i in range(n):
    print(a[i],end=" ")

Submission status: WA: Presentation Error

Solution code:
idx = int(input())
data = list(input().split())
data_int = [int(i) for i in data]
for j in range(1, idx+1):
    if j == idx+1:
        print(data_int[-j], end="")
    else:
        print(data_int[-j], end=" ")

Submission status: WA: Presentation Error

Solution code:
idx = int(input())
data = list(input().split())
data_int = [int(i) for i in data]
for j in range(1, idx+1):
    if j == idx+1:
        print(data_int[-j])
    else:
        print(data_int[-j], end=" ")

Submission status: WA: Presentation Error

Solution code:
idx = int(input())
data = list(input().split())
data_int = [int(i) for i in data]
for j in range(1, idx+1):
    if j == idx+1:
        print(data_int[-j])
    else:
        print(data_int[-j], end=" ")
print()

Submission status: WA: Presentation Error

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

b.reverse()

for i in b:
    print(i,end=" ")

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
# (c) midandfeed
int(input())
q = [int(x) for x in input().split()]
for x in q[::-1]:
	print(x, end=' ')
print()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

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

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = input().split()

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

Submission status: WA: Presentation Error

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

import fileinput
import math

def main():
    number = int(input())
    for line in fileinput.input():
        tokens = list(map(int, line.strip().split()))

        tokens.reverse()

        for i in range(number):
            print('%d ' % (tokens[i]), end='')

        print('')



if __name__ == '__main__':
    main()

Submission status: WA: Presentation Error

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

import fileinput
import math

def main():
    number = int(input())
    for line in fileinput.input():
        tokens = list(map(int, line.strip().split()))

        tokens.reverse()

        for i in range(number):
            if(i == number+1):
                print('%d' % (tokens[i]), end='')
            else:
                print('%d ' % (tokens[i]), end='')
        print('')



if __name__ == '__main__':
    main()

Submission status: WA: Presentation Error

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

import fileinput
import math

def main():
    number = int(input())
    for line in fileinput.input():
        tokens = list(map(int, line.strip().split()))

        tokens.reverse()

        for i in range(number):
            if(i == number+1):
                print('%d' % (tokens[i]), end='')
            else:
                print('%d ' % (tokens[i]), end='')



if __name__ == '__main__':
    main()

Submission status: WA: Presentation Error

Solution code:
count = int(input())
array = list(map(int,input().split()))
array.reverse()
for i in range(count):
    print('{}'.format(array[i]),end="")
    if i != count - 1:
        print(' ',end="")

Submission status: WA: Presentation Error

Solution code:
n = input()
nums = list(map(int,input().split()))
cnt=0
for i in reversed(nums):
    if cnt==0:
        print(i,end="")
        cnt += 1
    else:
        print(" {}".format(i),end="")

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = [int(x) for x in input().split()]

b = str("")
for i in range(n):
    b += str(a[n - i - 1]) + " "

print(b)

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
cn=1
while True:
	try:
		if cn ==1:
			n = int(input())
			cn+=1
		if cn ==2:
			nums = input().split()
		
		nums = list(map(int, nums))
		nums.reverse()
		for x in nums:
			print(x, end=' ')	
		
	except EOFError:
		break

Submission status: WA: Presentation Error

Solution code:
cn=1
while True:
	try:
		if cn ==1:
			n = int(input())
			cn+=1
		if cn ==2:
			nums = input().split()
		
		nums = list(map(int, nums))
		nums.reverse()
		for x in nums:
			print(x, end = ' ')
		
	except EOFError:
		break

Submission status: WA: Presentation Error

Solution code:
cn=1
while True:
	try:
		if cn ==1:
			n = int(input())
			cn+=1
		if cn ==2:
			nums = input().split()
		
		nums = list(map(int, nums))
		nums.reverse()
		l = ''
		for x in nums:
			l+= ' {}'.format(x)
		print(l)
		
	except EOFError:
		break

Submission status: WA: Presentation Error

Solution code:
input()
A = input().split()
A.reverse()
ret = ""
for i in A:
    ret += " " + i
print(ret)

Submission status: WA: Presentation Error

Solution code:
input()
A = input().split()
A.reverse()
ret = ""
for i in A:
    ret += i + " "
print(ret)

Submission status: WA: Presentation Error

Solution code:
num = int(input())
buffer = [int(x) for x in input().split()]


buffer2 = []
for i in buffer:
    buffer2.append(i)

for num in range(len(buffer)):
    buffer2[-(num+1)] = buffer[num]
 
for num in range(len(buffer2)):
    print(str(buffer2[num])+' ', end = '')

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a.reverse()
ans = ""
for i in a:
    ans += "{} ".format(i)
print(ans)

Submission status: WA: Presentation Error

Solution code:
#coding: utf-8

n = int(input())
l = input().split()
l.reverse()

for i in l:
    print(i, end = ' ' if i != n else '\n')

Submission status: WA: Presentation Error

Solution code:
#coding: utf-8

n = int(input())
l = input().split()
l.reverse()

for i,j in enumerate(l):
    print(j, end = ' ' if i != n-1 else '')

Submission status: WA: Presentation Error

Solution code:

n=int(input())

a=input().split()


for i in range(n):
    out=a[(n-i-1)]
    print(str(out) + " ", end="")
print()

Submission status: WA: Presentation Error

Solution code:

n=int(input())
a=input().split()


for i in range(n):
    out=a[(n-i-1)]
    print(" " + str(out), end="")
print()

Submission status: WA: Presentation Error

Solution code:
n = int(input())
l = [int(i) for i in input().split()]
print('', *l[::-1])

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
import sys

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

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

Submission status: WA: Presentation Error

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

for item in (reversed(arr)):
    print(str(item) + " ", end="")

print("")

Submission status: WA: Presentation Error

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

for i in range(n // 2):
	l[i],l[-1-i] = l[-1-i],l[i]
        
for j in l:
	if j == 0:
		print(str(j), end="")
	else:
		print(str(j) + " ", end="")

Submission status: WA: Presentation Error

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

for i in range(n // 2):
	l[i],l[-1-i] = l[-1-i],l[i]
        
for j in l:
	if j == l[0]:
		print(str(j), end="")
	else:
		print(" " + str(j), end="")

Submission status: WA: Presentation Error

Solution code:
n = input()
a = map(int,raw_input().split())
ans = []
b = ""
for i in reversed(a):
    ans.append(i)
for j in range(n):
    b += str(ans[j])+" "
print b

Submission status: WA: Presentation Error

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

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

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

Submission status: WA: Presentation Error

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

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

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

print()

Submission status: WA: Presentation Error

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

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

for i in range(n):

    if i is n - 1:
        print('{0} '.format(a[i]))
    else:
        print('{0} '.format(a[i]), end='')

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
a.reverse()
str = ""
for d in a:
    str +="%d "%(d)

print(str)

Submission status: WA: Presentation Error

Solution code:
input()
print(''.join(input().split()[::-1]))

Submission status: WA: Presentation Error

Solution code:
input()
print ''.join(raw_input().split()[::-1])

Submission status: WA: Presentation Error

Solution code:
s = input()
print ''.join(raw_input().split()[::-1])

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
import sys
n = int(input())
arr = list(map(int, input().split()))

for i in range(n):
	sys.stdout.write(str(arr[n - i - 1]))
	if i != n - 1:
		sys.stdout.write(' ')

Submission status: WA: Presentation Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
a.reverse()
for x in a:
    if a==n:
        print(x)
    else:
        print(x,end=" ")

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a.reverse()
for y,x in enumerate(a):
    if y == len(a):
        print(x)
    else:
        print(x, end=" ")

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
def main():
    x = int(input())
    numlist = list(map(int, input().split()))
    for i in range(1, x+1):
        if i == x:
            print(numlist[x-i], end="")
        else:
            print(numlist[x-i], end=" ")

if __name__ == '__main__':
    main()

Submission status: WA: Presentation Error

Solution code:
import sys
n=input()
list=map(int,raw_input().split())
i=n-1
while i>=0:
 sys.stdout.write(str(list[i])+" ")
 i-=1
print