forked from Satiya12/Cpp-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogicalproblem01.cpp
More file actions
29 lines (22 loc) · 767 Bytes
/
logicalproblem01.cpp
File metadata and controls
29 lines (22 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// You are given 2 integers - X,Y. You can do one of the following operations multiple times
// 1.Select any other integer Z and increase X by Z and decrease Y by Z OR
// 2.Select any other integer Z and decrease X by Z and increase Y by Z
// After any number of operations - you have to check if X==Y
// Input Format:
// First line will contain T,number of test cases.Then the test cases follow.Each test case contains of a single line of input, two integers,X, Y.
// Output Format:
// For each test case, if the equality can be achieved - output YES else output NO
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while (t--)
{
int a, b;
cin >> a >> b;
//complete the code
}
return 0;
}