結果

問題 No.779 Heisei
ユーザー RK PythonRK Python
提出日時 2020-06-06 20:48:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 379 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-23 13:51:50
合計ジャッジ時間 1,988 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

Y,M,D = [int(i) for i in input().split()]
if 1989 <= Y <= 2019:
    if Y != 1989 and Y != 2019:
        print("Yes")
    elif Y == 1989 and 1 <= M:
        if M != 1:
            print("Yes")
        elif 8 <= D:
            print("Yes")
        else:
            print("No")
    elif Y == 2019 and M <= 4:
        print("Yes")
    else:
        print("No")
else:
    print("No")
0