지나가던 개발자
[Python] 백준 1032번(명령 프롬프트) 문제 풀이 본문
n = int(input())
if n == 1:
print(input())
else:
files = []
for i in range(n):
files.append(input())
for i in range(len(files[0])):
letter = files[0][i]
printed = False
for j in range(1, len(files)):
if files[j][i] == letter:
continue
print("?", end="")
printed = True
break
if not printed:
print(letter, end="")
'PS > Python' 카테고리의 다른 글
[Python] 백준 2167번(2차원 배열의 합) 문제 풀이 (0) | 2022.10.30 |
---|---|
[Python] 백준 15727번(조별과제를 하려는데 조장이 사라졌다) 문제 풀이 (0) | 2022.10.29 |
[Python] 백준 2587번(대표값2) 문제 풀이 (0) | 2022.10.27 |
[Python] 백준 20362번(유니대전 퀴즈쇼) 문제 풀이 (0) | 2022.10.26 |
[Python] 백준 13773번(Olympic Games) 문제 풀이 (0) | 2022.10.26 |
Comments