QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 256 MB Total points: 100

#22409. Gerade? Ungerade?

Statistics

Bessies grausame Lehrerin in der zweiten Klasse hat ihr eine Liste von $N$ ($1 \le N \le 100$) positiven ganzen Zahlen $I$ ($1 \le I \le 10^{60}$) gegeben, deren Parität Bessie bestimmen muss (in der zweiten Klasse erklärt als „Gerade ... oder ungerade?“). Bessie ist von der Länge der Liste und der Größe der Zahlen überwältigt. Schließlich hat sie erst vor Kurzem zählen gelernt.

Schreibe ein Programm, das die $N$ ganzen Zahlen einliest und für gerade Zahlen even in einer eigenen Zeile ausgibt, und entsprechend odd für ungerade Zahlen.

Eingabe

  • Zeile 1: eine einzelne ganze Zahl $N$.
  • Zeilen $2..N+1$: Zeile $j+1$ enthält $I_{j}$, die $j$-te Zahl, deren Parität bestimmt werden soll.

Ausgabe

  • Zeilen $1..N$: Zeile $j$ enthält je nach Parität von $I_{j}$ das Wort even oder odd.

Beispiele

Eingabe 1

2
1024
5931

Ausgabe 1

even
odd

Hinweis

Zwei ganze Zahlen: 1024 und 5931.

1024 ist offensichtlich durch 2 teilbar; 5931 nicht.

Teilaufgaben

Punkte: 25

Autor der Aufgabe: 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.