← Back to List

15444번: Vera and ABCDE ↗

Solutions

Python 3
280 B | 280 chars
d = {"A": ["*.*", "***", "*.*", "*.*"], "B": ["*.*", "***", "*.*", "***"], "C": ["*.." ,"*.." ,"*.." ,"***"], "D": ["*.*","*.*","*.*","***"], "E": ["*..","***","*..","***"]}

print("***"*int(input()))
s=input()
for i in range(4):
  for j in s:
    print(d[j][i],end="")
  print()