#include<stdio.h>int fabs(int a){return a>=0?a:-a;}int main(){ int cas,p,pa,pb; int tmp1,tmp2; scanf("%d",&cas); while(cas--) { scanf("%d%d%d",&p,&pa,&pb); tmp1=fabs(p-pa); tmp2=fabs(p-pb); if(tmp1<tmp2) printf("An"); else printf("Bn"); }}
#include<stdio.h>int fabs(int a){return a>=0?a:-a;}int main(){ int cas,p,pa,pb; int tmp1,tmp2; scanf("%d",&cas); while(cas--) { scanf("%d%d%d",&p,&pa,&pb); tmp1=fabs(p-pa); tmp2=fabs(p-pb); if(tmp1<tmp2) printf("An"); else printf("Bn"); }}