Negative Product Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution
This post is all about the solution of the Negative Product Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution.
Problem Statement:
A, B, A, B, and CC are assigned to Chef.
He wants to see if he can choose exactly two numbers from these so that the product of the numbers chosen is negative.
Format of Input
The number of test cases will be indicated by a single integer TT in the first line of input.
Each test case consists of three integers A, B, A,B, and CC, which are provided.
Format of Input :
The number of cases will be indicated by a single integer TT in the first line of input.
Each test case's first and only line includes 2 space-separated integers NN and MM — the number of apples and oranges, respectively.
Format of the Output :
For every test case, output YES if the group is perfect and NO or else on a new line.
Each character can be printed in either uppercase or lowercase. The strings YES, yes, Yes, and yES, for example, are all considered identical.
0 Comments