OJ-Problems-Source/HDOJ/2188_autoAC.cpp

16 lines
237 B
C++
Raw Normal View History

#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;
}
}