练22.3 爱你爱你
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
2020, a beautiful year, because "2020" sounds like "love you love you" in Chinese. May students receive lots of love in the new year! The observant Claire also noticed that 2020 is a once-in-a-century year: its first two digits are identical to its last two digits. The next such year will be 2121, 101 years later! In this beautiful and perfect year, may all contestants seize the day and live up to their youth. Given a 4-digit year, determine if it is also a year where the first two digits are identical to the last two digits.
Input Format
A 4-digit integer year () representing the year.
Output Format
If it is a year where the first two digits are identical to the last two digits, output "YES";
otherwise, output "NO".
Sample
2020YES
20251213 A班作业(10)
- Status
- Done
- Problem
- 10
- Open Since
- 2025-12-13 0:00
- Deadline
- 2025-12-21 23:59
- Extension
- 24 hour(s)