#include<iostream>
#include<cstdio>
#include <math.h>
#include <string.h>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
while (n!=0)
{
if ((n & 1) ==0)printf("Alice\n");elseprintf("Bob\n");
scanf("%d",&n);
}
return 0;
}
标签:style io os ar sp div c on amp
#include<iostream>
#include<cstdio>
#include <math.h>
#include <string.h>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
while (n!=0)
{
if ((n & 1) ==0)printf("Alice\n");elseprintf("Bob\n");
scanf("%d",&n);
}
return 0;
}
BZOJ 2463: [中山市选2009]谁能赢呢?【博弈】
标签:style io os ar sp div c on amp
原文地址:http://www.cnblogs.com/philippica/p/4006938.html