[Solution] Equal Integers CodeChef Solution | CodeChef Problem Solution 2022
Chef has two integers and . Chef wants to perform some operations to make and equal. In one operation, Chef can either:
- set
- or set
Find the minimum number of operations required
Solution Click Below:- CLICK HERE
to make and equal.
Input Format
- The first line contains a single integer — the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two space separated integers and .
Output Format
For each test case, print the minimum number of operations required to make and equal.
No comments:
Post a Comment