OJ-Problems-Source/HDOJ/4387_autoAC.cpp
2016-09-04 15:55:06 +08:00

24 lines
486 B
C++

#include <cstdio>
#include <algorithm>
using namespace std;
int n,k;
int main(void)
{
int cas = 1;
while(scanf("%d %d",&n,&k)!=EOF){
printf("Case %d: ",cas++);
int r = n - 2 * k;
int ans = 1;
bool sig = true;
if(r&1){
if(k == 1) sig = false;
else if(r == 1) ans = k;
}
if(sig)
printf("Alice %d\n",ans);
else
puts("Bob");
}
return 0;
}