{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"PLAIN","content":"现在给你两个数a跟b\n每一次操作你可以让a:a-x 与 b: b-2*x 或者 a : a-2*x b: b - x\n每次操作的x(x为正整数)可以不相同\n问是否可以经过若干轮操作使得a,b同时为0"}},{"title":"Input","value":{"format":"PLAIN","content":"输入的一行T(T≤100),代表样例个数\n接下来每行两个数分别代表a,b(a,b均小于1e9且大于等于0)"}},{"title":"Output","value":{"format":"PLAIN","content":"输出YES,如果两个数经过若干次操作后可能同时变为0\n否则输出NO"}},{"title":"Example","value":{"format":"PLAIN","content":"输入:\n3\n1 1\n1 2\n6 9\n输出:\nNO\nYES\nYES"}}]}