<\/span><\/h2>\n\n\n\nChef has A<\/em><\/strong> units of solid and B<\/em><\/strong> units of liquid. He combines them to create a mixture. What kind of mixture does Chef produce: a solution, a solid, or a liquid?<\/p>\n\n\n\nA mixture is called a:<\/p>\n\n\n\n
- A solution if A<\/em> > 0<\/strong> and B<\/em> > 0<\/strong>,<\/li>
- A solid if B = 0<\/strong>, or<\/li>
- A liquid if A = 0<\/strong>.<\/li><\/ol>\n\n\n\n
<\/span>Input Format<\/strong><\/span><\/h2>\n\n\n\n- The first line contains T<\/em><\/strong> denoting the number of test cases. Then the test cases follow.<\/li>
- Each test case contains two space-separated integers A<\/em><\/strong> and B<\/em><\/strong> on a single line.<\/li><\/ul>\n\n\n\n
<\/span>Output Format<\/strong><\/span><\/h2>\n\n\n\nFor each test case, output on a single line the type of mixture Chef produces, whether it is a Solution, Solid, or Liquid. The output is case sensitive<\/strong>.<\/p>\n\n\n\n<\/span>Constraints<\/strong><\/span><\/h2>\n\n\n\n- 1 \u2264 T \u2264 20<\/strong><\/li>
- 0 \u2264 A, B \u2264 100<\/strong><\/li>
- A +B > 0<\/strong><\/li><\/ul>\n\n\n\n
Subtasks<\/strong><\/p>\n\n\n\nSubtask 1 (100 points):<\/strong> Original constraints<\/p>\n\n\n\nSample Input 1<\/strong><\/p>\n\n\n\n3\n10 5\n0 3\n3 0\n<\/code><\/pre>\n\n\n\nSample Output 1<\/strong><\/p>\n\n\n\nSolution\nLiquid\nSolid\n<\/code><\/pre>\n\n\n\nExplanation<\/strong><\/p>\n\n\n\nTest case 1:<\/strong> Chef adds both solid and liquid to the mixture, hence the mixture is a solution.
Test case 2:<\/strong> Chef does not add solid to the mixture, hence the mixture is liquid.
Test case 3:<\/strong> Chef does not add liquid to the mixture, hence the mixture is solid.<\/p>\n\n\n\n<\/span>Solution – Which Mixture <\/strong><\/span><\/h2>\n\n\n\n<\/span>C++<\/strong><\/span><\/h3>\n\n\n\n#include <iostream>\nusing namespace std;\n\nint main() {\n\t\/\/ your code goes here\n\tint test;\n\tcin >> test;\n\t\n\twhile (test--){\n\t int a, b;\n\t cin >> a >> b;\n\t if (a == 0){\n\t cout << \"Liquid\" << endl;\n\t }\n\t else if (b == 0){\n\t cout << \"Solid\" << endl;\n\t }\n\t else{\n\t cout << \"Solution\" << endl;\n\t }\n\t}\n\t\n\treturn 0;\n}\n<\/pre>\n\n\n\n