Odd Sum Pair Codechef Solution

We Are Discuss About CODECHEF SOLUTION

Odd Sum Pair Codechef Solution

Odd Sum Pair Codechef Solution

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW
JoinScishowEngineerTelegram

Problem

Chef has 3 numbers A, B and C.

Chef wonders if it is possible to choose exactly two numbers out of the three numbers such that their sum is odd.

Input Format

  • The first line of input will contain a single integer T, denoting the number of test cases.
  • Each test case consists of three integers A, B, C.

Output Format

For each test case, output YES if you can choose exactly two numbers with odd sum, NO otherwise.

The output is case-insensitive. Thus, the strings YESyesyeS, and Yes are all considered the same.

Constraints

  • 1 \leq T \leq 100
  • 1 \leq A, B, C \leq 10

Sample 1:

Input

Output

4
1 2 3
8 4 6
3 3 9
7 8 6
YES
NO
NO
YES

Explanation:

Test case 1: Chef can choose 2 and 3 since 2 + 3 = 5 and 5 is odd.

Test case 2: It can be shown that Chef cannot choose two numbers among 84 and 6 with odd sum.

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW
JoinScishowEngineerTelegram

 

SOLUTION

Odd Sum Pair Codechef Solution

Yhaa You have done it but next? if YOU Want to Get Others Please Visit Here JOIN NOW

Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW
JoinScishowEngineerTelegram

Related Posts

Leave a Reply

Your email address will not be published.

adplus-dvertising