Logo
(追記) (追記ここまで)

20650번 - Do You Know Your ABCs? 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB16641140102569.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.

제한

예제 입력 1

2 2 11 4 9 7 9

예제 출력 1

2 2 7

힌트

출처

Olympiad > USA Computing Olympiad > 2020-2021 Season > USACO 2020 December Contest > Bronze 1번

  • 데이터를 추가한 사람: pichulia
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /