{"trustable":true,"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":"HTML","content":"\u003cp\u003eUtkarsh被迫再次玩Ashish的游戏。游戏逐轮进行,和往常一样,Ashish先手。\u003c/p\u003e\u003cp\u003e考虑二维平面。初始时有一个令牌位于$$$(0,0)$$$处。在一次移动中,玩家必须将令牌的$$$x$$$坐标或$$$y$$$坐标增加$$$k$$$。在这样做时,玩家必须确保令牌距离$$$(0,0)$$$不超过$$$d$$$。\u003c/p\u003e\u003cp\u003e换句话说,如果移动后令牌的坐标是$$$(p,q)$$$,则必须满足$$$p^2 + q^2 \\leq d^2$$$。\u003c/p\u003e\u003cp\u003e游戏在某个玩家无法移动时结束。可以证明游戏将在有限次移动后结束。如果两名玩家都采取最佳策略,请确定谁将获胜。\u003c/p\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cp\u003e第一行包含一个整数$$$t$$$($$$1 \\leq t \\leq 100$$$)— 测试用例的数量。\u003c/p\u003e\u003cp\u003e每个测试用例的唯一一行包含两个以空格分隔的整数$$$d$$$($$$1 \\leq d \\leq 10^5$$$)和$$$k$$$($$$1 \\leq k \\leq d$$$)。\u003c/p\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cp\u003e对于每个测试用例,如果Ashish赢得游戏,则打印\"\u003cspan class\u003d\"tex-font-style-tt\"\u003eAshish\u003c/span\u003e\",否则打印\"\u003cspan class\u003d\"tex-font-style-tt\"\u003eUtkarsh\u003c/span\u003e\"(不包括引号)。\u003c/p\u003e"}},{"title":"示例1","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\n2 1\n5 2\n10 3\n25 4\n15441 33\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eUtkarsh\nAshish\nUtkarsh\nUtkarsh\nAshish\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"注意","value":{"format":"HTML","content":"\u003cp\u003e在第一个测试用例中,一种可能的移动顺序可以是\u003c/p\u003e\u003cp\u003e$$$(0, 0) \\xrightarrow{\\text{Ashish }} (0, 1) \\xrightarrow{\\text{Utkarsh }} (0, 2)$$$。\u003c/p\u003e\u003cp\u003eAshish没有可用的移动,因此Utkarsh获胜。\u003c/p\u003e\u003cp\u003e\u003cimg class\u003d\"tex-graphics\" src\u003d\"CDN_BASE_URL/430cc189c42bb8f2c831acb9081eef3e?v\u003d1710278010\" style\u003d\"max-width: 100.0%;max-height: 100.0%;\"\u003e\u003c/p\u003e"}}]}