CT167

Even Tile Inventory

EasyL2 · Byte BanditAcceptance: 0.0%XP: 10

A tray lists signed tile values, including zero and negative values. Task: Count the even values, including negative even values and zero. Input format: n followed by n integers. Output format: One integer: the count. Constraints: 1 <= n <= 100000; -10^9 <= a[i] <= 10^9 Edge rules: Apply the stated zero, tie, boundary, and ordering conventions exactly.

Example 1:

Input: 1 5
Output: 0

Example 2:

Input: 1 -3
Output: 0

Example 3:

Input: 5 4 1 9 -2 6
Output: 3

Constraints:

1 <= n <= 100000; -10^9 <= a[i] <= 10^9

Tags:

arrays parity
Loading...
Test Cases:No test cases
No test cases available.
Even Tile Inventory - EASY Coding Problem | CodeTikki