結果

問題 No.779 Heisei
ユーザー MinoruNakazawa
提出日時 2019-01-26 14:38:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 381 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-06 03:33:18
合計ジャッジ時間 1,574 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

strs = input()
str_list = strs.split(' ')
num_list = [int(i) for i in str_list]


ans=False

if num_list[0] > 1989 and num_list[0] < 2019:
    ans = True
elif num_list[0] == 1989 and ((num_list[1] == 1 and num_list[2] >= 8) or num_list[1] >= 2 ):
    ans = True
elif num_list[0] == 2019 and num_list[1] <= 4:
    ans = True

if ans == True:
    print("Yes")
else:
    print("No")

0