Submission
Status:
PPPPPPPPPPPPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: mfs
Problemset: Bakushin's Genius Game
Language: cpp
Time: 0.010 second
Submitted On: 2025-10-07 16:16:48
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false); cin.tie(nullptr);
int q; cin >> q;
while (q--) {
int n; cin >> n;
if (n%2 == 0) cout << (n > 3 ? 'A' : 'B');
else cout << (n > 3 ? 'B' : 'A');
cout << '\n';
}
}