[파이썬] 2290 LCD Test
s, n = input().split() s = int(s) res = [[] for _ in range(2 * s + 3)] for i, num in enumerate(n): if num in ['1', '4']: res[0] += [' ' * (s + 2)] else: res[0] += [' ', '-' * s, ' '] for i in range(1, s + 1): if num in ['1', '2', '3', '7']: res[i] += [' ' * (s + 1), '|'] elif num in ['5', '6']: res[i] += ['|', ' ' * (s + 1)] else: res[i] += ['|', ' ' * s, '|'] if num in ['1', '7', '0']: res[s + ..