結果

問題 No.779 Heisei
ユーザー kohei2019
提出日時 2022-04-07 00:58:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-11-27 21:24:17
合計ジャッジ時間 2,288 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

Y,M,D = map(int,input().split())
if 1989 < Y < 2019:
    print('Yes')
elif Y < 1989 or 2019 < Y:
    print('No')
elif Y == 1989:
    if 1 < M:
        print('Yes')
    else:
        if D >= 8:
            print('Yes')
        else:
            print('No')
else:
    if 4 >= M:
        print('Yes')
    else:
        print('No')
0