🔻PS/Programmers
[Programmers] 프로그래머스 완주하지 못한 선수 Python
_니지
2024. 7. 16. 11:17
https://school.programmers.co.kr/learn/courses/30/lessons/42576
import collections
def solution(participant, completion):
participant.sort()
completion.sort()
for a, b in zip(participant, completion):
if a != b:
return a
return participant[-1]
728x90
반응형