MrImmortal09 / GitGrindGDSC

0 stars 2 forks source link

Provide Solution. #1

Open MrImmortal09 opened 1 year ago

MrImmortal09 commented 1 year ago

Issue Type: Provide Solution

Description:

Q. Write a code and upload it in Students/'Your roll no.'

Alice and Bob are playing a game. Each player rolls a regular six faced dice 3 times. The score of a player is the maximum number that can be formed using the rolls. The player with the highest score wins, and the game ends in a tie if both players have the same score. Find the winner of the game or determine whether it is a tie.

Input Format The first line of input will contain a single integer T, denoting the number of test cases. Each test case contains six space-separated integers A1,A2,A3 ,B1,B2,B3 - the values Alice gets in her 3 dice rolls, followed by the values which Bob gets in his 3 dice rolls.

Output Format

For each test case, output on a new line Alice if Alice wins, Bob if Bob wins and Tie in case of a tie.

Example Input: 3 3 2 5 6 1 1 4 4 5 5 4 4 6 6 6 6 6 1

Output:

Bob Tie Alice

--Note:**

Happy coding! 🚀

AshwinGajbhiye commented 1 year ago

@MrImmortal09 please assign me this issue

MrImmortal09 commented 1 year ago

@AshwinGajbhiye Thanks for taking intrest in this issue. I have assigned this issue to you. Happy Coding.