fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a, b;
  7. cin>>a;
  8. while(a--) {
  9. cin>>b;
  10. if(b%2) cout<<"BOB"<<endl;
  11. else cout<<"ALICE"<<endl;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3300KB
stdin
2
1
2
stdout
BOB
ALICE