Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: Bestzu

Problemset: Bakushin's Genius Game

Language: cpp

Time: 0.010 second

Submitted On: 2025-10-07 09:59:57

#include <bits/stdc++.h>
#define endl '\n'
using namespace std;



int main() {
    ios::sync_with_stdio(false); cin.tie(0);

	int q; cin >> q;
	while(q--) {
		int n; cin >> n;
		if(n <= 3) {
			if(n%2!=0) {
				cout << "A";
			}
			else {
				cout << "B";
			}
		}
		else {
			if(n%2==0) {
				cout << "A";
			}
			else {
				cout << "B";
			}
		}
		cout << endl;
	}
    
    return 0;
}