GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Wednesday 15 June 2022

[Solution] Make them Equal CodeChef Solution | CodeChef Problem Solution 2022


You are given 3 numbers A,B and C.

You want to make all these 3 numbers equal. To do this, you can perform any finite number of operations:

  • In the ith operation, you must add 2(i1) to any one of these 3 numbers.

Find whether you can make these 3 numbers equal in finite number of moves.

Input Format

  • First line will contain T, number of test cases. Then the test cases follow.
Solution Click Below:-  CLICK HERE


  • Each test case contains of a single line of input, three integers A,B, and C.

Output Format

For each test case, output YES if you can make these 3 numbers equal, NO otherwise.

You may print each character of the string in uppercase or lowercase (for example, the 

Burgers CodeChef Solution

Waiting Time CodeChef Solution

DNA Storage CodeChef Solution

Joining Date CodeChef Solution

Distinct Palindrome CodeChef Solution

The Optimal Pairs CodeChef Solution

Make them Equal CodeChef Solution

Permutation AND CodeChef Solution

strings YESyEsyes, and yeS will all be treated as identical).

Constraints

  • 1T5000

No comments:

Post a Comment