Skip to content

Instantly share code, notes, and snippets.

@malkoG
Last active March 18, 2019 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkoG/915529408806c43a79ec3fec7475d704 to your computer and use it in GitHub Desktop.
Save malkoG/915529408806c43a79ec3fec7475d704 to your computer and use it in GitHub Desktop.
noj.am/11586
n=int(input())
mirror = [ input() for i in range(0,n) ]
state = int(input())
display = mirror[::-1] if state > 2 else mirror
for line in display:
print(line if state % 2 == 1 else line[::-1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment