結果

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

ソースコード

diff #

y,m,d=map(int,input().split())
if 1989<y and y<2019:
    print('Yes')
elif y==1989:
    if 1<m or 8<=d:
        print('Yes')
    else:
        print('No')
elif y==2019:
    if m<=4:
        print('Yes')
    else:
        print('No')
else:
    print('No')
0