[GESP202412 一级] 奇数和偶数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
小杨有 个正整数,他想知道其中的奇数有多少个,偶数有多少个。
输入格式
第一行包含一个正整数 ,代表正整数个数。
之后 行,每行包含一个正整数。
输出格式
输出两个正整数(英文空格间隔),代表奇数的个数和偶数的个数。如奇数或偶数的个数为 ,则对应输出 。
5
1
2
3
4
5
3 2
提示
对于全部数据,保证有 且正整数不超过 。