Wannafly挑战赛24A

版权声明:转就转吧~~记得声明噢~~ https://blog.csdn.net/Soul_97/article/details/82721271

https://www.nowcoder.com/acm/contest/186/A

#include<iostream>
using namespace std;
int main(){
    int n,x,y=0;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>x;
        if(!(x&1))y++;//有双数,y++
    }
    if(!y||y&1)puts("Bob");
    else puts("Alice");
    return 0;
}

猜你喜欢

转载自blog.csdn.net/Soul_97/article/details/82721271
今日推荐