{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027],[\u0027\\[\u0027,\u0027\\]\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027description-container\u0027]);}, 2000);\u003c/script\u003e\n\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\n 有一堆石子共有N个。石坝和狮鹫两个人轮流拿,石坝先拿。每次最少拿1颗,最多拿K颗,拿到最后1颗石子的人获胜。石坝和狮鹫都非常聪明,拿石子的过程中不会出现失误。给出N和K,问最后谁能赢得比赛。\n \u003c/div\u003e\n \u003cdiv\u003e\n 例如N \u003d 3,K \u003d 2。无论石坝如何拿,狮鹫都可以拿到最后1颗石子。(学长们还是太菜了.jpg)\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n 第1行:一个数T,表示后面用作输入测试的数的数量。(1 \u0026lt;\u003d T \u0026lt;\u003d 10000) 第2 - T + 1行:每行2个数N,K。中间用空格分隔。(1 \u0026lt;\u003d N,K \u0026lt;\u003d 10^9)\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n 共T行,如果石坝获胜输出A,如果狮鹫获胜输出B。\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e4\n3 2\n4 2\n7 3\n8 3\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003eB\nA\nA\nB\u003c/pre\u003e"}}]}