본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 5349번 Duplicate SSN

by 현장 2024. 6. 23.

-Code

arr = []

while True:
    line = input()
    if line == "000-00-0000":
        break
    arr.append(line)

for el in sorted(list(set(arr))):
    if arr.count(el) > 1:
        print(el)