| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
直接过了,估计还是看题喽了点,N》3由于是圈,先手必败。#include<iostream>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
if(n==0)break;
if(n==1||n==2)
cout<<"Alice"<<endl;
else
cout<<"Bob"<<endl;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator