-
Notifications
You must be signed in to change notification settings - Fork 0
/
#770B.cpp
62 lines (57 loc) · 1.27 KB
/
#770B.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define f0(i, n) for (int i = 0; i < n; i++)
#define f1(i, n) for (int i = 1; i <= n; i++)
#define ll long long
#define all(x) x.begin(), x.end()
#define pb push_back
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define mod7 1000000007
#define test(t) int t; cin>>t; while(t--)
#define setp(x, y) fixed << setprecision(y) << x
#define fast_io std::ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
bool isPalindrome(string S)
{
// Stores the reverse of the
// string S
string P = S;
// Reverse the string P
reverse(P.begin(), P.end());
// If S is equal to P
if (S == P) {
// Return "Yes"
return true;
}
// Otherwise
else {
// return "No"
return false;
}
}
signed main()
{
fast_io;
test(t){
ll n,x,y;
cin>>n;
cin>>x;
cin>>y;
ll arr[n];
ll sum=0;
for(ll i=0;i<n;i++){
cin>>arr[i];
sum+=arr[i];
}
if((sum+x+y)%2==0){
cout<<"Alice";
}
else{
cout<<"Bob";
}
cout<<endl;
}
}