Nuttela in Hyderabad
All submissions for this problem are available.Nuttela was busy in math when he observed some behavior of numbers. He used two number $A$ and $B$ and could do the following operations on them. - $A$ can be incremented to $2A$ - $B$ can be decremented to $B - 2$ By doing these operations any number of times (including zero). Can $A$ and $B$ be made equal ? Nuttela has not yet solved the problem. Can you help our confused nuttela? ###Input: - First line will contain $T$, number of test cases. Then the test cases follow. - First line of each test case contains of a two space-separated integers $A, B$. ###Output: For each test case, output in a single line answer $YES$ or $NO$. ###Constraints - $1 \leq T \leq 1000$ - $1 \leq A,B \leq 10^9$ ###Sample Input: 2 4 8 5 15 ###Sample Output: YES YES ###EXPLANATION: - Test case I : 4 * 2 = 8 (YES) - Test case II : 15 - 2 - 2 - 2 - 2 - 2 = 5 (YES)
|Tags||easy, enoc2019, nuttela, nuttela, observations|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.