| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 1664 | 1140 | 1025 | 69.070% |
Farmer John's cows have been holding a daily online gathering on the "mooZ" video meeting platform. For fun, they have invented a simple number game to play during the meeting to keep themselves entertained.
Elsie has three positive integers $A,ドル $B,ドル and $C$ ($A\le B\le C$). These integers are supposed to be secret, so she will not directly reveal them to her sister Bessie. Instead, she gives Bessie seven (not necessarily distinct) integers in the range 1ドル \ldots 10^9,ドル claiming that they are $A,ドル $B,ドル $C,ドル $A+B,ドル $B+C,ドル $C+A,ドル and $A+B+C$ in some order.
Given a list of these seven numbers, please help Bessie determine $A,ドル $B,ドル and $C$. It can be shown that the answer is unique.
The only line of input consists of seven space-separated integers.
Print $A,ドル $B,ドル and $C$ separated by spaces.
2 2 11 4 9 7 9
2 2 7
Olympiad > USA Computing Olympiad > 2020-2021 Season > USACO 2020 December Contest > Bronze 1번