結果

問題 No.779 Heisei
ユーザー snqsnq
提出日時 2022-09-15 21:38:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 325 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-17 15:24:03
合計ジャッジ時間 1,696 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

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