結果

問題 No.779 Heisei
ユーザー kaiman
提出日時 2019-01-26 14:21:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 504 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-16 05:08:37
合計ジャッジ時間 1,612 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

inp = input()
split_first = inp.split(' ')
Y = int(split_first[0])
M = int(split_first[0])
D = int(split_first[0])


def hantei(Y,M,D):
    if (1989<Y and Y<2019):
        print('Yes')
    elif (1989>Y and Y>2019):
        print('No')
    elif (Y==1984 and 1<M):
        print('Yes')
    elif (Y==1984 and M==1 and 8<=D):
        print('Yes')
    elif (Y==2019 and M<4):
        print('Yes')
    elif (Y==2019 and M==4 and D<=30):
        print('Yes')
    else:
        print('No')
        
hantei(Y,M,D)
0