标签:des style blog http color java os strong
先上题目:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4557 Accepted Submission(s): 2713
1 #include <iostream> 2 #include <cstring> 3 #define MAX 100 4 using namespace std; 5 6 int s[MAX]; 7 8 int main() 9 { 10 int m,sum,ans; 11 ios::sync_with_stdio(false); 12 while(cin>>m,m){ 13 ans=0; 14 for(int i=0;i<m;i++){ 15 cin>>s[i]; 16 ans^=s[i]; 17 } 18 sum=0; 19 for(int i=0;i<m;i++){ 20 if((ans^s[i])<s[i]) sum++; 21 } 22 cout<<sum<<endl; 23 } 24 return 0; 25 }
HDU - 1850 - Being a Good Boy in Spring Festival,布布扣,bubuko.com
HDU - 1850 - Being a Good Boy in Spring Festival
标签:des style blog http color java os strong
原文地址:http://www.cnblogs.com/sineatos/p/3887570.html