BZOJ2463: [中山市选2009]谁能赢呢?
感慨下汉堡的找水题能力…
1 /************************************************************** 2 Problem: 2463 3 User: zhuohan123 4 Language: C++ 5 Result: Accepted 6 Time:0 ms 7 Memory:804 kb 8 ****************************************************************/ 9 10 #include <cstdio> 11 using namespace std; 12 int main() 13 { 14 int n; 15 while(scanf("%d",&n)!=EOF&&n)printf((n&1)?"Bob\n":"Alice\n"); 16 return 0; 17 }