2022-12-10 12:23:13 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
X = 1
|
|
|
|
C = 0
|
2022-12-10 20:49:42 +00:00
|
|
|
LCD = [["░"]*40 for _ in range(6)]
|
2022-12-10 12:23:13 +00:00
|
|
|
|
|
|
|
def inc():
|
|
|
|
global C
|
|
|
|
(r,c) = divmod(C, 40)
|
|
|
|
C+=1
|
|
|
|
if c in [X, X-1, X+1]:
|
2022-12-10 20:49:42 +00:00
|
|
|
LCD[r][c]="█"
|
2022-12-10 12:23:13 +00:00
|
|
|
|
|
|
|
for l in sys.stdin.read().splitlines():
|
|
|
|
m, q = (l+" _").split(" ")[:2]
|
|
|
|
if m == "noop":
|
|
|
|
inc()
|
|
|
|
else: # add
|
|
|
|
inc()
|
|
|
|
inc()
|
|
|
|
X += int(q)
|
|
|
|
|
|
|
|
print("\n".join("".join(r) for r in LCD))
|