比赛 ICPC复现(AI数据) 评测结果 AAAAAAAAAA
题目名称 取石子 最终得分 100
用户昵称 VTXE 运行时间 0.031 s
代码语言 C++ 内存使用 3.71 MiB
提交时间 2026-05-26 20:16:29
显示代码纯文本
#include <bits/stdc++.h>
using namespace std;
#define ll long long

ll n2(ll o){
    if (o==0) return 0;
    ll res=0;
    while (o>0&&o%2==0){
        res++;
        o/=2;
    }
    return res;
}

ll n;
ll a[1100];
ll maxn,nm;
bool c=0;

int main(){
	freopen("shi.in","r",stdin);
	freopen("shi.out","w",stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);cout.tie(0);
    cin>>n;
    for (int i=0;i<n;i++){
        cin>>a[i];
        a[i]=n2(a[i]);
		if (a[i]%2==1){
			c=1;
		}
    }
	if (c){
		cout<<"Alice";
	}else{
		cout<<"Bob";
	}
	return 0;
}