15145641

最最最基础巴什博奕

#include<stdio.h>
#include<iostream>
#include<cstring>
#include<cmath>
#include<queue>
using namespace std;
int main()
{
    int t,n,m;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%d%d",&n,&m);
        if(n % (m+1) )
        {
            puts("Grass");
        }
        else puts("Rabbit");
    }
    return 0;
}

 

posted on 2016-04-30 18:31  icode-xiaohu  阅读(121)  评论(0编辑  收藏  举报