//Yoyoyoのを変更に追従させたやつ #include using namespace std; using ll = long long; int main() { int T; cin>>T; for(int i=0; i> N >> s; if (N == 1 || N == 2) { if (s == "Odd") { cout << "Alice" << endl; } else { cout << "Bob" << endl; } continue; } bool beki = false; for (int i = 2; i <= 60; i++) { if ((1ll << i) == N) { if (s == "Odd") { cout << "Bob" << endl; } else { cout << "Alice" << endl; } continue; } } if (N % 2) { cout << "Alice" << endl; } else { cout << "Bob" << endl; } } }