题意:略

解题思路:

       直接Bash博弈,水水更健康。。。

代码:

#include<iostream> 
using namespace std; 
int main(void

    int cas,total,price; 
    scanf("%d",&cas); 
    while(cas--) 
    { 
        scanf("%d%d",&total,&price); 
        if(total%(price+1)) 
            cout<<"Grass"<<endl; 
        else 
            cout<<"Rabbit"<<endl; 
    } 
    return 0

 

 

posted on 2011-08-23 17:18  cchun  阅读(218)  评论(0编辑  收藏  举报