标签:
http://acm.nyist.net/JudgeOnline/problem.php?pid=464
#include<stdio.h> int main() { int even,odd,sum; int i,n,arr[110]; while(~scanf("%d",&n)) { even=odd=sum=0; for(i=0;i<n;i++) { scanf("%d",&arr[i]); sum+=arr[i]; if(arr[i]%2!=0) even++; else odd++; } if(sum%2==0) printf("%d\n",odd); else printf("%d\n",even); } return 0; }
标签:
原文地址:http://blog.csdn.net/qq_16767427/article/details/43085347