結果

問題 No.779 Heisei
ユーザー hir355
提出日時 2020-11-20 22:49:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 413 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 82,536 KB
実行使用メモリ 53,836 KB
最終ジャッジ日時 2024-07-23 13:33:44
合計ジャッジ時間 2,168 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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