結果

問題 No.779 Heisei
ユーザー otsunekootsuneko
提出日時 2021-05-07 18:44:20
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 843 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 71,604 KB
最終ジャッジ日時 2023-10-13 09:53:42
合計ジャッジ時間 4,486 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,424 KB
testcase_01 AC 68 ms
71,384 KB
testcase_02 AC 69 ms
71,272 KB
testcase_03 AC 69 ms
71,552 KB
testcase_04 AC 70 ms
71,484 KB
testcase_05 AC 70 ms
71,604 KB
testcase_06 AC 70 ms
71,128 KB
testcase_07 AC 68 ms
71,312 KB
testcase_08 AC 67 ms
71,412 KB
testcase_09 AC 70 ms
71,396 KB
testcase_10 AC 70 ms
71,276 KB
testcase_11 AC 69 ms
71,396 KB
testcase_12 AC 69 ms
71,328 KB
testcase_13 AC 71 ms
71,284 KB
testcase_14 AC 70 ms
71,384 KB
testcase_15 AC 68 ms
71,376 KB
testcase_16 AC 73 ms
71,376 KB
testcase_17 AC 69 ms
71,404 KB
testcase_18 AC 70 ms
71,132 KB
testcase_19 AC 72 ms
71,252 KB
testcase_20 AC 71 ms
71,564 KB
testcase_21 AC 70 ms
71,496 KB
testcase_22 AC 71 ms
71,472 KB
権限があれば一括ダウンロードができます

ソースコード

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