题解 | #句子反转#
句子反转
http://www.nowcoder.com/practice/0ae4a12ab0a048ee900d1536a6e98315
while True:
try:
str = input().split(" ")
lis = list(str)
lis.reverse()
res = ''.join(lis[0])
for i in range(1,len(lis)):
res += ' '
res += (''.join(lis[i]))
print(res)
except:
break
s = input().split()[::-1]
for x in s:
print(x, end=' ')