一、题目要求 二、参考代码 n = int(input()) s = [int(i) for i in input().split()] o = 0 a = 0 for i in s: if i%2==0: a += 1 else: o += 1 print(str(o)+' '+str(a))