| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 4 초 | 2048 MB | 28 | 25 | 19 | 90.476% |
Three players are having a game night, playing a long sequence of different games. In each game, one of the three players wins. In order to keep track of the order of winners, each of the three players decides to keep a list of all winners in order. However, due to the dopamine rush as the result of winning a game, everyone always forgets to write themselves on their own list of winners. Thus, the list of player $1$ only contains the order in which players $2$ and $3$ won the different games, the list of player $2$ only contains the order in which players $1$ and $3$ won, and the list of player $3$ only contains the order in which players $1$ and $2$ won.
Given these three lists, determine the actual order in which all three players won their games.
The input consists of:
It is guaranteed that it is always possible to determine the unique order in which all three players won their games.
Output a single string containing the order in which all three players won their games.
2 1 21
21
23 13 12
123
23232323 11331133 12121212
121323121323
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2025 Preliminaries H번