mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
20 lines
330 B
C++
20 lines
330 B
C++
|
#include<iostream>
|
||
|
const int MAX=1001;
|
||
|
int s[MAX];
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
int n,m,i;
|
||
|
while(cin>>n,n)
|
||
|
{
|
||
|
m=0;
|
||
|
for(i=1;i<=n;i++)
|
||
|
cin>>s[i],m^=s[i];
|
||
|
if(m)
|
||
|
cout<<"Rabbit Win!"<<endl;
|
||
|
else
|
||
|
cout<<"Grass Win!"<<endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|