#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
typedef long long LL;
int a,b;
int main()
{
int t;
scanf(
"%d", &t);
while (t--)
{
scanf(
"%d%d", &a, &b);
if (a > b)
{
a ^= b;
b ^= a;
a ^= b;
}
int m = b - a;
int k = (
int)(m * (
1 +
sqrt(
5)) /
2.0);
printf(
"%c\n", a == k ?
'B' :
'A');
}
return 0;
}
转载请注明原文地址: https://www.6miu.com/read-63074.html