BZOJ 2463 谁能赢呢? (博弈论)

题解:简单博弈论

#include <cstdio>
int main(){
    int n;
    while(scanf("%d",&n),n!=0)
    if (n&1) puts("Bob");
    else puts("Alice");
    return 0;
} 
原文地址:https://www.cnblogs.com/forever97/p/bzoj2463.html