Submission

Status:

PPPPPPPPPPPPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: solarsunny

Problemset: Bakushin's Genius Game

Language: cpp

Time: 0.013 second

Submitted On: 2025-10-05 15:12:52

#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;
        string turn = "A";
        cin >> n;
        if(n<=3) {
            if(n%2==0) {
                cout << "B" << "\n";
                continue;
            } else {
                cout << "A" << "\n";
                continue;
            }
        } else {
            if(n%2==0) {
                cout << "A" << "\n";
                continue;
            } else {
                cout << "B" << "\n";
                continue;
            }
        }
        
    }
    return 0;
}