#P9955. [USACO20DEC] Do You Know Your ABCs? B
[USACO20DEC] Do You Know Your ABCs? B
Problem Description
Farmer John’s cows are holding their daily meeting on the "mooZ" video conferencing platform. They invented a simple number game to make the meeting more fun.
Elsie has three positive integers , , and (). These numbers are secret, and she will not tell them directly to her sister Bessie. She tells Bessie seven integers in the range (not necessarily distinct), claiming that they are some permutation of , , , , , , and .
Given these seven integers, help Bessie find , , and . It can be proven that the answer is unique.
Input Format
Input one line containing seven space-separated integers.
Output Format
Output , , and , separated by spaces.
2 2 11 4 9 7 9
2 2 7
Hint
Subtask Properties
- Subtasks satisfy .
- Subtasks have no additional constraints.
Translated by ChatGPT 5