Submission
Status:
TTTTTTTTTTTTTTTTTTTT
Subtask/Task Score:
0/100
Score: 0
User: Jxricho
Problemset: Bakushin's Genius Game
Language: cpp
Time: 1.097 second
Submitted On: 2025-10-07 11:37:17
#include<bits/stdc++.h>
#define ll long long
using namespace std;
main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n,z;
cin>>n;
for(int i=0;i<n;i++){
cin>>z;
if(z==0){
cout<<"B\n";
}
else{
int cnt=0;
while(z!=0){
if(z==1||z==2){
z/=2;
}
else if(z%2==0&&z!=2){
z=2;
}
cnt++;
}
if(cnt%2==1){
cout<<"A\n";
}
else{
cout<<"B\n";
}
}
}
}