結果

問題 No.779 Heisei
ユーザー lloyz
提出日時 2022-05-24 21:42:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 1,000 ms
コード長 321 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-20 14:31:18
合計ジャッジ時間 1,806 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

y, m, d = map(int, input().split())

if 1989 < y < 2019:
    print("Yes")
elif y == 1989:
    if m > 1:
        print("Yes")
    else:
        if d >= 8:
            print("Yes")
        else:
            print("No")
elif y == 2019:
    if m <= 4:
        print("Yes")
    else:
        print("No")
else:
    print("No")
0