[Solution] Make them Equal CodeChef Solution | CodeChef Problem Solution 2022
You are given numbers and .
You want to make all these numbers equal. To do this, you can perform any finite number of operations:
- In the operation, you must add to any one of these numbers.
Find whether you can make these numbers equal in finite number of moves.
Input Format
- First line will contain , 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 and .
Output Format
For each test case, output YES
if you can make these numbers equal, NO
otherwise.
You may print each character of the string in uppercase or lowercase (for example, the
Waiting Time 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 YES
, yEs
, yes
, and yeS
will all be treated as identical).
No comments:
Post a Comment