#P2955. [USACO09OCT] Even? Odd? G
[USACO09OCT] Even? Odd? G
Description
Bessie's ruthless second-grade teacher gave her a list with positive integers 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 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 .
The next lines: the -th line contains an integer , which is the -th integer to determine as odd or even.
Output Format
A total of lines: the -th line contains the word even or odd, depending on the parity of .
2
1024
5931
even
odd
Hint
Sample Explanation:
Two integers: .
is divisible by , is not.
Constraints:
.
Translated by ChatGPT 5
京公网安备 11011102002149号