#include <iostream>
using namespace std;
int main() {
int n, cnta = 0, cntb = 0;
cin >> n;
for(int i = 0; i < n; i++) {
int temp;
cin >> temp;
if(temp % 2 == 0)
cntb++;
else
cnta++;
}
cout << cnta << " " << cntb;
return 0; }
10-25
1158
11-22
640
11-21
670
10-30
04-01
1126
03-09
188
11-20
836
09-22
1375
11-12
542
03-03
353
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交