← Back to List

30658번: Os últimos serão os primeiros ↗

Solutions

Python 3
122 B | 122 chars
while 1:
  l = [input() for i in range(int(input()))]
  
  if len(l) == 0:
    break
  print(*l[::-1],sep="\n")
  print(0)