QOJ.ac

QOJ

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

#22409. Chẵn? Lẻ?

Statistics

Cô giáo lớp hai nghiêm khắc của Bessie đã giao một danh sách gồm $N$ ($1 \le N \le 100$) số nguyên dương $I$ ($1 \le I \le 10^{60}$) mà Bessie phải xác định tính chẵn lẻ (được giải thích ở lớp hai là "Chẵn... hay lẻ?"). Bessie choáng ngợp trước độ dài danh sách và độ lớn của các số. Dù sao thì cô mới học đếm gần đây.

Viết một chương trình đọc $N$ số nguyên và in even trên một dòng cho các số chẵn, và tương tự in odd cho các số lẻ.

Dữ liệu vào

  • Dòng 1: một số nguyên duy nhất $N$.
  • Các dòng $2..N+1$: dòng $j+1$ chứa $I_{j}$, số nguyên thứ $j$ cần xác định chẵn hay lẻ.

Dữ liệu ra

  • Các dòng $1..N$: dòng $j$ chứa từ even hoặc odd, tùy vào tính chẵn lẻ của $I_{j}$.

Ví dụ

Dữ liệu vào 1

2
1024
5931

Dữ liệu ra 1

even
odd

Ghi chú

Hai số nguyên: 1024 và 5931.

1024 rõ ràng chia hết cho 2; 5931 thì không.

Nhiệm vụ con

Điểm: 25

Tác giả bài toán: 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.