SHARE
TWEET

Untitled

a guest Dec 7th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image = open("input.txt", "r").read().rstrip()
  2. image = [image[i:i+150] for i in range(0, len(image), 150)]
  3. pixels = []
  4. for i in range(150):
  5.     m = []
  6.     for j in range(150):
  7.         m.append(image[j][i])
  8.     pixels.append(m)
  9.  
  10. def get_first_visible(a):
  11.     for i in a:
  12.         if(i != "2"):
  13.             return i
  14.  
  15. a = [get_first_visible(i) for i in pixels]
  16. print("".join(a))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top