题意:略

解题思路:

       直接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

 

 

相关文章:

  • 2021-07-17
  • 2021-09-02
  • 2021-11-26
  • 2022-12-23
  • 2021-05-22
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-01-29
  • 2021-11-27
  • 2021-10-23
  • 2021-07-10
相关资源
相似解决方案