You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
(re.compile(r'^rotate column x=([0-9]*) by ([0-9]*)$'), rotateX),
(re.compile(r'^rotate row y=([0-9]*) by ([0-9]*)$'), rotateY)
]
result = [[0]*50 for x in range(6)]
[[m[1](*map(int, m[0].groups())) for m in [next(command for command in map(lambda x: (x[0].match(d), x[1]), commands) if command[0] != None)]] for d in data]
print sum(map(sum, result))
print '\n'.join(''.join('#' if item == 1 else ' ' for item in row) for row in result)