P2955 [USACO09OCT] Even? Odd? G
Description
Bessie's ruthless second-grade teacher gave her a list with $N$ positive integers $I$ and asked her to determine their "parity" (explained to a second grader as "is the number odd or even?"). Bessie was shocked by how long the list was—there were as many items as on Dongdong's repetitive worksheets! After all, she has only just learned to count.
Write a program that reads $N$ integers. If a number is even, output `even` on a separate line; if it is odd, similarly output `odd`.
Input Format
The first line contains an integer $N$.
The next $N$ lines: the $j$-th line contains an integer $l_j$, which is the $j$-th integer to determine as odd or even.
Output Format
A total of $N$ lines: the $j$-th line contains the word `even` or `odd`, depending on the parity of $l_j$.
Explanation/Hint
Sample Explanation:
Two integers: $1024\text{ 和 }5931$.
$1024$ is divisible by $2$, $5931$ is not.
Constraints:
$1\le N \le 100,1\le l_j \le 10^{60}$.
Translated by ChatGPT 5