結果

問題 No.779 Heisei
ユーザー otsuneko
提出日時 2021-05-07 18:44:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-15 07:00:41
合計ジャッジ時間 2,038 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 > 7:
            print("Yes")
        else:
            print("No")
elif Y == 2019:
    if M < 5:
        print("Yes")
    else:
        print("No")
else:
    print("No")        
0