PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SCKTCUOIKI0001. Kiểm tra số chẵn hay số lẻ (Even or Odd)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Đang đọc
Kiểm tra số chẵn hay số lẻ (Even or Odd)
Even or Odd
**Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , determine whether it is even or odd. An integer is even if its remainder upon division by is ; otherwise it is odd. This definition also applies to negative integers and zero.
Input
The only line contains the integer .
Output
Print exactly one line: Chẵn if is even, or Lẻ if is odd. These Vietnamese output strings, including their accents, must be reproduced exactly.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Input
17
Output
Lẻ
Explanation
Dividing by gives quotient and remainder . Since the remainder is not zero, is odd, so the output is Lẻ.
Liên quan
Trong các cuộc thi sau: