OJ-Problems-Source/HDOJ/2188_autoAC.cpp
2016-08-22 00:08:26 +08:00

16 lines
237 B
C++

#include <iostream>
using namespace std;
int main()
{
int c,n,m;
cin>>c;
while(c--)
{
cin>>n>>m;
if(n%(m+1)==0)
cout<<"Rabbit"<<endl;
else
cout<<"Grass"<<endl;
}
}