mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
237 B
C++
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;
|
||
|
}
|
||
|
}
|