Input
Two dates, each comprising of a month (Dec or Jan) and a day (01-31). These will be given as 4 integers (12 01 01 01
, for example), in any reasonable format you choose (leading zeroes, no leading zeroes, list, individual inputs, list of lists, etc.). The first date is supposed to represent today's date.
Output
- If the second input date is Dec 14, output
Sufganiyot
- If it is Dec 18, output
A new hope
- For Dec 23,
The airing of grievances
- For Dec 25,
O Tannenbaum
- For Dec 31 or Jan 1,
Auld Lang Syne
- Otherwise output
Try some other day!
(in which case you will not compare the dates, see below)
This is followed by
, Go and get it!
if the first and second input dates are same., Wait for it!
if the first date comes before the second date., But you missed it!
if the first date comes after the second date.
Sample runs
Dec 23 Dec 23
-> The airing of grievances, Go and get it!
Dec 28 Jan 1
-> Auld Lang Syne, Wait for it!
Dec 18 Dec 17
-> Try some other day!
Jan 25 Dec 25
-> O Tannenbaum, But you missed it!
Score
This is code golf, so shortest code in bytes wins.
1225
for Christmas Day and0101
for New Years day acceptable? I could even say that my program uses a "format" where December 18 is represented byA new hope
\$\endgroup\$