use proconio::input; fn main() { input! { t: usize, } for _ in 0..t { solve(); } } fn solve() { input! { x: usize, } // 2進数ですべてbitが立つときのみBobの勝ち println!("{}", if ans(x) {"Alice"} else {"Bob"}); } fn ans(mut x: usize) -> bool { while x > 0 { if x % 2 == 0 { return true; } x /= 2; } false }