fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. #define GG ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  5. int main () { GG;
  6. int t; cin>>t;
  7. while(t--) {
  8. ll a,b,sum=0;
  9. cin>>a>>b; sum=a+b;
  10. (sum%2 ==0) ? cout<<"Bob\n" : cout<<"Alice\n";
  11. }return 0;}
Success #stdin #stdout 0.01s 5300KB
stdin
10
1 1
1 4
5 3
4 5
11 9
83 91
1032 9307
839204 7281
1000000000 1000000000
53110 2024
stdout
Bob
Alice
Bob
Alice
Bob
Bob
Alice
Alice
Bob
Bob