結果

問題 No.779 Heisei
ユーザー brthyyjp
提出日時 2020-07-20 02:45:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 352 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 53,560 KB
最終ジャッジ日時 2024-12-18 00:53:06
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

y, m, d = map(int, input().split())
if y == 1989:
    if m == 1:
        if d <= 7:
            print('No')
        else:
            print('Yes')
    else:
        print('Yes')
elif y == 2019:
    if m <= 4:
        print('Yes')
    else:
        print('No')
elif y < 1989:
    print('No')
elif 1989 < y < 2019:
    print('Yes')
else:
    print('No')
0