# Kattis - oddities [題目連結](https://open.kattis.com/problems/oddities) ## 題目敘述 Some numbers are just, well, odd. For example, the number $3$ is odd, because it is not a multiple of two. Numbers that are a multiple of two are not odd, they are even. More precisely, if a number $n$ can be expressed as $n=2⋅k$ for some integer $k$, then $n$ is even. For example, $6=2⋅3$ is even. Some people get confused about whether numbers are odd or even. To see a common example, do an internet search for the query “is zero even or odd?” (Don’t search for this now! You have a problem to solve!) Write a program to help these confused people. :::success 某些數字是奇數,例如 $3$,因為它們不是 $2$ 的倍數。 某些數字是 $2$ 的倍數,它們不是奇數,是偶數。 更精確的來說,如果一個數字 $n$ 可找到一個整數 $k$ 使得 $n=2⋅k$ 成立,就說 $n$ 是偶數, 例如 $6=2⋅3$ 是偶數。 某些人搞不清楚數字是奇還是偶,一個常見的例子是去網路上搜尋以下問題 「$0$ 是奇數還是偶數?」 (別現在馬上去搜!你還沒解出這道問題呢!) 寫個程式幫助那些搞不清楚數字奇偶的人們。 ::: ## 輸入格式 Input begins with an integer $1\le n\le 20$ on a line by itself, indicating the number of test cases that follow. Each of the following $n$ lines contain a test case consisting of a single integer $−10\le x\le 10$. :::success 輸入第一行為一個整數 $1\le n\le 20$ 代表接下來有多少組的測試資料。 接下來 $n$ 行每行為一組測試資料,包含一整數 $−10\le x\le 10$。 ::: ## 輸出格式 For each $x$, print either ‘$x$ is odd’ or ‘$x$ is even’ depending on whether $x$ is odd or even. :::success 對每組 $x$ 依照 $x$ 是奇數還是偶數,輸出「$x$ is odd」或者「$x$ is even」。 ::: ## Sample Input ``` 3 10 9 -5 ``` ## Sample Output ``` 10 is even 9 is odd -5 is odd ``` {%hackmd @sa072686/__style %} ###### tags: `翻譯`, `Kattis`