先上题目:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2097 Accepted Submission(s): 1579
1 #include <iostream> 2 #include <cstring> 3 #define MAX 1002 4 using namespace std; 5 6 int main() 7 { 8 int n,ans,x; 9 ios::sync_with_stdio(false); 10 while(cin>>n,n){ 11 ans=0; 12 for(int i=0;i<n;i++){ 13 cin>>x; 14 ans^=x; 15 } 16 if(ans) cout<<"Rabbit Win!"<<endl; 17 else cout<<"Grass Win!"<<endl; 18 } 19 return 0; 20 }
HDU - 1849 - Rabbit and Grass,布布扣,bubuko.com
原文:http://www.cnblogs.com/sineatos/p/3887552.html