hdu 1849 Rabbit and Grass
// Time 15ms, Memory 228K
#include<iostream> #include<cstdio> using namespace std; int main() { int i,m,k; while(scanf("%d",&m) && m) { int ans=0; for(i=0;i<m;i++) { scanf("%d",&k); ans^=k; } if(ans) printf("Rabbit Win!\n"); else printf("Grass Win!\n"); } return 0; }