#K2391. Even or Odd Sum

    ID: 24726 Type: Default 1000ms 256MiB

Even or Odd Sum

Even or Odd Sum

You are given several test cases. Each test case consists of an array of integers. Your task is to determine whether the sum of the elements in each array is even or odd.

An integer n is considered even if \(n \bmod 2 = 0\) and odd otherwise.

Example: For an array [1, 2, 3], the sum is 6 which is even because \(6 \bmod 2 = 0\).

inputFormat

The input is given from stdin in the following format:

  • The first line contains an integer \(T\), the number of test cases.
  • For each test case, the first line contains an integer \(N\) — the number of integers in the array.
  • The second line contains \(N\) space-separated integers.

outputFormat

For each test case, output a single line to stdout containing the string "even" if the sum of the array is even, or "odd" if the sum is odd.## sample

3
3
1 2 3
4
4 5 6 7
5
10 20 30 40 50
even

even even

</p>