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 mlhljp at 2005-07-26 14:26:26 on Problem 2484
#include<stdio.h>
void main()
{long n;
	while(1)
	{scanf("%ld",&n);
	if(n==0)
break;
	if(n>=4)
	{if(n%2==0)
printf("Bob\n");
	else printf("Alice\n");
		
	}
	else{if(n%3==0)
printf("Bob\n");
	else printf("Alice\n");	}
	}

}

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