問題一覧 > 通常問題

No.779 Heisei

レベル : / AI推定難易度 : 98 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 128 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 454
作問者 : mai / テスター : ciel
お気に入りにしたユーザー ProblemId : 2519 / 自分の提出
問題文最終更新日: 2020-06-05 18:09:05
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 204 (順位表) の他の問題:

Problem Statement

A date is called Heisei if it falls within the period from January 8, 1989 to April 30, 2019 (including both January 8, 1989 and April 30, 2019).

A date is given from standard input. Write a program that determines whether that date is Heisei.

Input

$Y$ $M$ $D$

Three natural numbers are given from standard input, separated by spaces, in the order of year (Gregorian calendar), month, and day.
The input date always exists (it is guaranteed that inputs such as month 13 day 40 or February 31 are not given).

The given date is limited to the range from December 31, 1969 to January 20, 2038 (inclusive of both ends).

Output

Print Yes if the input date is Heisei, and No if it is not.

Sample

Sample 1
Input
2001 9 9
Output
Yes

Sample 2
Input
2019 5 3
Output
No

It's a Friday, isn't it.

Sample 3
Input
1989 1 7
Output
No

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。