Codeforces Round 948 (Div. 2)
A
Little Nikita
Codeforces
800
原题
←B →
翻译中…

The little boy Nikita was given some cubes as a present. He decided to build a tower out of them.

翻译中…

Initially, the tower doesn't have any cubes. In one move, Nikita either puts exactly $1$ cube on top of the tower or removes exactly $1$ cube from the top of the tower. Is it possible that after $n$ moves, the resulting tower has exactly $m$ cubes?

翻译中…

Input

翻译中…

Each test contains multiple test cases. The first line of input contains a single integer $t$ ($1 \le t \le 100$) — the number of test cases. The description of the test cases follows.

翻译中…

The only line of each test case contains two integers $n$ and $m$ ($1 \le n, m \le 100$).

翻译中…

Output

翻译中…

For each test case, output "Yes" (without quotes) if Nikita can obtain a tower with $m$ cubes, and "No" (without quotes) otherwise.

翻译中…

You can output each letter in any case (lowercase or uppercase). For example, the strings "yEs", "yes", "Yes", and "YES" will be accepted as a positive answer.

翻译中…

Note

翻译中…

In the first test case, Nikita can put $1$ cube on top of the tower $3$ times in a row, so the answer is "Yes".

翻译中…

In the second test case, Nikita can only end up with either a tower with no blocks or a tower with $2$ blocks, so the answer is "No".

翻译中…

样例

Input #1
3
3 3
2 4
5 3
Output #1
Yes
No
Yes
InputCopy OutputCopy
题目信息
题号
1977A
时间限制
1 s
内存限制
256 MB
标签
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。