HDU 2188.悼念512汶川大地震遇难同胞——选拔志愿者-巴什博奕
HDU2188:
1 #include<iostream>
2 #include<cstring>
3 #include<cstdio>
4 #include<cmath>
5 #include<algorithm>
6 using namespace std;
7 int main(){
8 int t;
9 scanf("%d",&t);
10 while(t--){
11 int n,m;
12 scanf("%d%d",&n,&m);
13 if(n%(m+1)==0)printf("Rabbit\n");
14 else printf("Grass\n");
15 }
16 return 0;
17 }