1878: 【CSP二维数组】奇偶统计▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

在一个 lns="http://www.w3.org/1998/Math/MathML">n  lns="http://www.w3.org/1998/Math/MathML">m 列的二维数组中,有若干奇数和偶数,请编程统计出这个二维数组中,奇数和偶数分别有多少个?

Input

第一行是两个整数 lns="http://www.w3.org/1998/Math/MathML">n 和 lns="http://www.w3.org/1998/Math/MathML">m ( lns="http://www.w3.org/1998/Math/MathML">n 和 lns="http://www.w3.org/1998/Math/MathML">m 都是 lns="http://www.w3.org/1998/Math/MathML">4100 之间的整数),代表接下来的二维数组有 lns="http://www.w3.org/1998/Math/MathML">n 行 lns="http://www.w3.org/1998/Math/MathML">m 列。

接下来 lns="http://www.w3.org/1998/Math/MathML">n 行,每行有 lns="http://www.w3.org/1998/Math/MathML">m 个整数。(这些整数都是 lns="http://www.w3.org/1998/Math/MathML">09999 之间的整数)

Output

两个整数用空格隔开,分别代表二维数组中奇数、偶数的个数。

Sample Input Copy

2 2
2 3
4 6

Sample Output Copy

1 3