http://acm.hdu.edu.cn/showproblem.php?pid=2188
巴什博奕(Bash Game)的转换:换一种说法而已
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4620 Accepted Submission(s): 2782
1 #include<stdio.h> 2 int main() 3 { 4 int t,n,m; 5 scanf("%d",&t); 6 while(t--) 7 { 8 scanf("%d%d",&n,&m); 9 if(n%(m+1)!=0) 10 printf("Grass\n"); 11 else 12 printf("Rabbit\n"); 13 } 14 return 0; 15 }
HDU-2188 悼念512汶川大地震遇难同胞——选拔志愿者
原文:http://www.cnblogs.com/cancangood/p/3513876.html