num=int(input()) s=list(input()) le=len(s) for i in range(num-1): arr=list(input()) for j in range(le): if s[j]!=arr[j]: s[j]='?' print(''.join(s))
접근 방법