Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bibi is celebrating her 2 1 st birthday party. She invites you and another 5 friends to join the party. Lucky to you and her

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 (
Mi). Then, Bibi will give
them some pieces of blank paper.
Firstly, the
i
th person should add his/her chosen number
Mi with
Mi
itself and then write
the result on the blank paper. Then, they should put the paper they wrote before to
Bibis bag. Then, Bibi ask them to shake each others hands. If
i
th person shake hands
with
j
th person, then both of
i
th and
j
th person should write
Mi
+
Mj
in their paper and
put the paper into the bag. This procedure stops when everyone already shakes each
others 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
Mi
and
Mj
for every possible
i and
j).

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

5. Have you stressed the topics relevance to your audience?

Answered: 1 week ago