题解:简单博弈论
#include <cstdio> int main(){ int n; while(scanf("%d",&n),n!=0) if (n&1) puts("Bob"); else puts("Alice"); return 0; }
BZOJ 2463 谁能赢呢? (博弈论),布布扣,bubuko.com
时间: 2024-10-26 00:26:54
题解:简单博弈论
#include <cstdio> int main(){ int n; while(scanf("%d",&n),n!=0) if (n&1) puts("Bob"); else puts("Alice"); return 0; }
BZOJ 2463 谁能赢呢? (博弈论),布布扣,bubuko.com