====== 배부른 마라토너 ====== ===== 풀이 ===== * 프로그래머스의 [[ps:problems:programmers:42576]]과 완전히 동일한 문제이다. 풀이는 그쪽 참고. ===== 코드 ===== """Solution code for "BOJ 10546. 배부른 마라토너". - Problem link: https://www.acmicpc.net/problem/10546 - Solution link: http://www.teferi.net/ps/problems/boj/10546 """ import collections import sys def main(): N = int(sys.stdin.readline()) counter = collections.Counter(x.rstrip() for x in sys.stdin) answer = next(x for x, count in counter.items() if count % 2 == 1) print(answer) if __name__ == '__main__': main() {{tag>BOJ ps:problems:boj:실버_4}}