QOJ.ac

QOJ

حد الوقت: 2 s حد الذاكرة: 256 MB مجموع النقاط: 100

#22409. 偶數?奇數?

الإحصائيات

Bessie 的嚴厲二年級老師布置了一個包含 $N$($1 \le N \le 100$)個正整數 $I$($1 \le I \le 10^{60}$)的列表,要求 Bessie 判斷它們的奇偶性(二年級的說法是「偶數……還是奇數?」)。列表的長度和數字的大小讓 Bessie 不知所措。畢竟,她最近才剛學會數數。

編寫一個程式,讀入這 $N$ 個整數;對於偶數,在單獨一行輸出 even,對於奇數,同樣輸出 odd。

輸入格式

  • 第 1 行:一個整數 $N$。
  • 第 $2..N+1$ 行:第 $j+1$ 行包含 $I_{j}$,即要判斷奇偶性的第 $j$ 個整數。

輸出格式

  • 第 $1..N$ 行:第 $j$ 行根據 $I_{j}$ 的奇偶性包含單詞 even 或 odd。

範例

輸入格式 1

2
1024
5931

輸出格式 1

even
odd

說明

兩個整數:1024 和 5931。

1024 顯然能被 2 整除;5931 則不能。

子任務

分值:25

題目作者:Rob Kolstad,2009

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.