代码奉上
#include<bits/stdc++.h>
using namespace std;
int n,a[1000005];
long long int A,B;
int main()
{
freopen("candy.in","r",stdin);
freopen("candy.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++)cin>>a[i];
sort(a+1,a+n+1);
reverse(a+1,a+1+n);
for(int i=1;i<=n;i++)
{
if(i%2==1)
if(a[i]%2==0)
A+=a[i];
else
if(a[i]%2==1)
B+=a[i];
}
if(A>B)cout<<"Alice\n";
else if(A==B)cout<<"wow\n";
else cout<<"Bob\n";
return 0;
}