Thanks_up's easy GCD

TimeLimit:2000MS  MemoryLimit:128MB
64-bit integer IO format:%lld
未提交 | 登录后收藏
Problem Description

Given two number,n and k, if the result of  image.png

is an odd number output "NO"(without quote), otherwise if it's an even number output "YES"(without quote)

Input

The first line of the input contains an integer T (1≤T≤10),which is the number of test cases.

In each case, the first line of the input contains two number n and k (1<=k<n<=2e12)


Output

output "YES" or  "NO"(without quote)

SampleInput
1
1530169 1237
SampleOutput
YES
Submit
题目统计信息详细
总AC数41
通过人数36
尝试人数43
总提交量192
AC率18.75%
AC该题后可以添加标签
贴完标签可以获得20ACB。
并且可以获得本题所有提交代码查看权限。
点击标题可以显示标签。
如果你还没认真思考过这题,请不要查看标签
如果您已经通过了该题,请务为该题贴上标签
作者

T^T Online Judge

[BUG反馈] [FAQ] [闽ICP备17026590号-1]
当前版本:3.24 系统时间: