[Solved] Which Mixture codechef solution

October Challenge 2021 Division 3 (Rated) - CodeChef

Which Mixture codechef solution

Chef has AA units of solid and BB units of liquid. He combines them to create a mixture. What kind of mixture does Chef produce: a solution, a solid, or a liquid?

A mixture is called a:

1) A solution if A>0A>0 and B>0B>0,

2) A solid if B=0B=0, or

3) A liquid if A=0A=0.

Which Mixture codechef solution

Input Format

  • The first line contains TT denoting the number of test cases. Then the test cases follow.
  • Each test case contains two space-separated integers AA and BB on a single line.

Which Mixture codechef solution

Output Format

For each test case, output on a single line the type of mixture Chef produces, whether it is a SolutionSolid, or LiquidThe output is case sensitive.

Which Mixture codechef solution

Constraints

  • 1T201≤T≤20
  • 0A,B1000≤A,B≤100
  • A+B>0A+B>0

Which Mixture codechef solution

Subtasks

  • Subtask 1 (100 points): Original constraints

Sample Input 1 

3
10 5
0 3
3 0

Sample Output 1 

Solution
Liquid
Solid

Explanation

Test case 11: Chef adds both solid and liquid to the mixture, hence the mixture is a solution.

Test case 22: Chef does not add solid to the mixture, hence the mixture is liquid.

Test case 33: Chef does not add liquid to the mixture, hence the mixture is solid.


Updating Soon…


Which Mixture codechef solution

Counting Tuples codechef solution

 

Leave a Comment