Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef __int128 lll;
- typedef long long ll;
- typedef long double ld;
- ll inf = 1e9+1, mod = 1e9 + 7;
- const int N = 1e6;
- #define all(a) a.begin(),a.end()
- #define pb push_back
- #define get(a) for(int i = 0; i < (int)a.size(); ++i) cout << a[i] << ' ';
- #define SOLVE int t; cin >> t; while(t--) solve();
- struct mosh
- {
- int first, second, third;
- };
- std::vector<int>g[N];
- bool compare2(int a, int b){
- return a > b;
- }
- bool compare(mosh a, mosh b){
- if(a.first!= b.first) return a.first > b.first;
- else if(a.first == b.first && a.second!= b.second) return a.second < b.second;
- else return a.third < b.third;
- }
- struct point{
- ll first, type;
- };
- bool compare3(point a, point b){
- if(a.type == b.type) return a.first < b.first;
- else return a.type > b.type;
- }
- ll pref[N];
- ll pref_x[N];
- void solve(){
- ll n, x, y;
- cin >> n >> x >> y;
- vector<ll>arr, arr2;
- ll sum = 0;
- ll cnt = 0;
- if(x%2!=0) ++cnt;
- for(ll i = 0; i < n; ++i){
- ll a;
- cin >> a;
- arr.pb(a);
- if(a%2!=0) ++cnt;
- }
- if(cnt%2!=0 && y%2!=0) cout << "Alice" << '\n';
- else if(cnt%2==0 && y%2==0) cout << "Alice\n";
- else cout << "Bob\n";
- }
- int main() {
- #ifdef anime
- freopen("input1.txt", "r", stdin);
- freopen("output1.txt", "w", stdout);
- #endif
- srand(time(nullptr));
- ios_base::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- SOLVE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement