Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Quinruj
Problemset: Bakushin's Genius Game
Language: cpp
Time: 0.010 second
Submitted On: 2025-10-06 22:17:35
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;cin>>t;
for (int i = 0;i<t;i++){
int n;cin>>n;
if (n <= 3) {
if (n%2 == 0) cout << 'B' << '\n';
else cout << 'A' << '\n';
}
else {
if (n%2 == 0) cout << 'A' << '\n';
else cout << 'B' << '\n';
}
}
}