2023-02-13 23:59:04 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
f = open("input.txt", mode="r")
|
|
|
|
lines = f.readlines()
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
for line in lines:
|
|
|
|
if line:
|
|
|
|
chunks = line.split("+")
|
|
|
|
for chunk in chunks:
|
|
|
|
s = chunk.split("x")
|
2023-02-15 14:23:08 +01:00
|
|
|
color = " " if s[0] == "1" else "#"
|
2023-02-13 23:59:04 +01:00
|
|
|
count = int(s[1])
|
|
|
|
print(color * count, end="")
|
|
|
|
print("")
|
|
|
|
|
|
|
|
|