标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3609 Accepted Submission(s): 2726
#include <iostream> #include <cstring> #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <map> using namespace std; int main() { int n; while(scanf("%d",&n)!=EOF,n){ int sum = 0,v; for(int i=0;i<n;i++){ scanf("%d",&v); sum^=v; } if(sum){ printf("Rabbit Win!\n"); }else{ printf("Grass Win!\n"); } } return 0; }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5769580.html