結果

問題 No.779 Heisei
ユーザー pypypymipypypymi
提出日時 2022-01-28 18:38:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 660 bytes
コンパイル時間 1,712 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 71,780 KB
最終ジャッジ日時 2023-08-28 16:27:58
合計ジャッジ時間 4,859 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
71,676 KB
testcase_01 AC 87 ms
71,556 KB
testcase_02 AC 88 ms
71,704 KB
testcase_03 WA -
testcase_04 AC 88 ms
71,528 KB
testcase_05 AC 89 ms
71,604 KB
testcase_06 AC 87 ms
71,780 KB
testcase_07 AC 88 ms
71,728 KB
testcase_08 AC 88 ms
71,384 KB
testcase_09 AC 87 ms
71,500 KB
testcase_10 AC 87 ms
71,564 KB
testcase_11 AC 88 ms
71,564 KB
testcase_12 AC 87 ms
71,752 KB
testcase_13 AC 90 ms
71,584 KB
testcase_14 AC 88 ms
71,384 KB
testcase_15 AC 88 ms
71,564 KB
testcase_16 AC 87 ms
71,564 KB
testcase_17 AC 88 ms
71,780 KB
testcase_18 WA -
testcase_19 AC 86 ms
71,568 KB
testcase_20 AC 87 ms
71,720 KB
testcase_21 AC 89 ms
71,752 KB
testcase_22 AC 88 ms
71,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# ある日付が 西暦1989年1月8日 から 西暦2019年4月30日 の区間に含まれる(1989年1月8日・2019年4月30日を含む)とき,
# その日付はHeiseiであると呼びます.

# 標準入力から日付が与えられます.その日付がHeiseiであるかどうか判定するプログラムを書いてください.
# 入力の日付がHeiseiならばYes,HeiseiでないならばNoを出力してください.
y,m,d = map(int,input().split())
import datetime
date1 = datetime.date(y,m,d)
date2 = datetime.date(1989,1,8)
date3 = datetime.date(2019,4,30)
print("Yes") if (date1 > date2) and (date1 < date3) else print("No")


0