Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

只要这样就行了...

Posted by abilitytao at 2009-03-14 23:54:33 on Problem 2484
#include<iostream>
using namespace std;


int main ()
{
	int n;
	while(cin>>n)
	{

		if(n==0)
			break;
		else if(n==1||n==2)
			printf("Alice\n");
		else 
			printf("Bob\n");
	}
	return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator