結果

問題 No.779 Heisei
ユーザー hir355hir355
提出日時 2020-11-20 22:49:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 413 bytes
コンパイル時間 619 ms
コンパイル使用メモリ 86,780 KB
実行使用メモリ 71,220 KB
最終ジャッジ日時 2023-09-30 19:46:07
合計ジャッジ時間 3,452 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,112 KB
testcase_01 AC 72 ms
70,860 KB
testcase_02 AC 70 ms
70,988 KB
testcase_03 AC 71 ms
70,992 KB
testcase_04 AC 71 ms
70,988 KB
testcase_05 AC 71 ms
70,988 KB
testcase_06 AC 70 ms
70,948 KB
testcase_07 AC 72 ms
70,772 KB
testcase_08 AC 71 ms
71,164 KB
testcase_09 AC 71 ms
71,044 KB
testcase_10 AC 71 ms
70,760 KB
testcase_11 AC 72 ms
71,104 KB
testcase_12 AC 71 ms
71,028 KB
testcase_13 AC 71 ms
71,072 KB
testcase_14 AC 70 ms
71,220 KB
testcase_15 AC 71 ms
71,040 KB
testcase_16 AC 69 ms
70,784 KB
testcase_17 AC 70 ms
71,044 KB
testcase_18 AC 71 ms
71,056 KB
testcase_19 AC 72 ms
71,080 KB
testcase_20 AC 69 ms
70,808 KB
testcase_21 AC 71 ms
71,008 KB
testcase_22 AC 69 ms
70,776 KB
権限があれば一括ダウンロードができます

ソースコード

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