| ||||||||||
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 |
不行呀。。很多遍了。。#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