题目 :Problem - 1850 (hdu.edu.cn)
#include<bits/stdc++.h>
using namespace std;
int main(){int m,a[110];while(scanf("%d",&m)==1&&m){int d=0,ans=0;for(int i=0;i<m;i++){scanf("%d",&a[i]);d^=a[i];}if(!d){printf("0\n");}else{int ans=0;for(int i=0;i<m;i++){if((d^a[i])<a[i]){ans++;}}printf("%d\n",ans);} }return 0;
}