#include <bits/stdc++.h>
using namespace std;
int main()
{
int T,i,tmp;
string str;
cin>>T;
while(T--)
{
cin>>str;
tmp=0;
for(i=0;i<str.length();i++)
{
tmp=(tmp*10+str[i]-'0')%3;
}
if(tmp)
printf("A\n");
else
printf("B\n");
}
}
51nod 1068 Bash游戏 V3
最新推荐文章于 2019-09-02 20:38:00 发布