15 lines
351 B
Python
15 lines
351 B
Python
#!/usr/bin/env python3
|
|
|
|
lines = (x.strip() for x in open("input.txt"))
|
|
sprite = 0
|
|
crt = ''
|
|
|
|
for line in lines:
|
|
crt += '█' if sprite <= len(crt) % 40 < sprite + 3 else ' '
|
|
if line[0] == 'a':
|
|
crt += '█' if sprite <= len(crt) % 40 < sprite + 3 else ' '
|
|
sprite += int(line[5:])
|
|
|
|
for i in range(6):
|
|
print(crt[i*40:i*40+40])
|