L1-022. 奇偶分家
2017-03-11 15:48
246 查看
//AC
#include <iostream>
#include <cstdlib>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
typedef long long ll;
using namespace std;
int main(){
int n,x;
int a,b;
scanf("%d",&n);
a=b=0;
for (int i = 1; i<=n; i++) {
scanf("%d",&x);
if((x%2)==0){a++;}
else{b++;}
}
printf("%d %d\n",b,a);
return 0;
}
相关文章推荐
- PAT 天梯赛 L1-022. 奇偶分家 【水】
- L1-022. 奇偶分家 java
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家-PAT团体程序设计天梯赛GPLT
- PAT-L1-022.奇偶分家
- ACM天梯赛练习L1-022. 奇偶分家
- 团体程序设计天梯赛-练习集L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- L1-022 奇偶分家
- L1-022. 奇偶分家
- L1-022. 奇偶分家
- PAT - 天梯赛 L1-022 奇偶分家
- L1-022. 奇偶分家
- 团体程序设计天梯赛-练习集L1-022. 奇偶分家
- L1-022. 奇偶分家