| ||||||||||
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就行了In Reply To:不行呀。。很多遍了。。 Posted by:mlhljp at 2005-07-26 14:26:26 > #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator