Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can You Guess the Guest? Bibi is celebrating her 2 1 st birthday party. She invites you and another 5 friends to join the party.

Can You Guess the Guest?
Bibi is celebrating her 21st birthday party. She invites you and another 5 friends to join the party. Lucky to you and her friends, you will get a private room to enjoy the party with Bibi.
Bibi decided to play with her 5 friends (except you) because Bibi wants your help. Her friends (those five friends) will think of a random number (M;). Then, Bibi will give them some pieces of blank paper.
Firstly, the ith person should add his /her chosen number M; with M; itself and then write the result on the blank paper.
Then, they should put the paper they wrote before to
Bibi's bag. Then, Bibi ask them to shake each other's hands. If ith person shake hands with ith person, then both of ith and th person should write M; + M; in their paper and put the paper into the bag. This procedure stops when everyone already shakes each other's hands.
After that, Bibi should guess the possible 5 numbers that her friends just think about.You should help Bibi to determine those 5 numbers. It is guaranteed that the solution exists and unique.
Format Input
Input consists of one integer T, number of test case given by Bibi. For each test case, there is a line with 25 integers S, the addition result written by her 5 friends (sum of M; and M; for every possible i and j).
Format Output
Output should be expressed in format "Case #X: Y Y, Y Y Ys"- X is the number of the test case (starting from 1), and followed by 5 integer Y, the 5 numbers in non-decreasing
Constraints
1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

Write messages that are used for the various stages of collection.

Answered: 1 week ago