チャレンジ
クリスマスの12日間のそれぞれで、日付に応じて「クリスマスの12日間」の適切な詩を出力します。
先頭および/または末尾の改行(\n)および末尾のスペースは許可されます。外部ソースから読み取ることはできません。
基本的にあなたがしなければならないことは、システム日付を読み、「12日間のクリスマス」の節を出力することです。
クリスマスの12日間
クリスマスの12日間は、クリスマスの日(12月25日)から1月5日までのキリスト教のお祝いの季節です。
例
日付が12月25日の場合(最短/最初の詩を印刷):
On the first day of Christmas
my true love sent to me:
a Partridge in a Pear Tree
日付が12月31日の場合(7節目を印刷):
On the seventh day of Christmas
my true love sent to me:
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree
日付が1月5日の場合(最長/最後の12節を印刷):
On the twelth day of Christmas
my true love sent to me:
12 Drummers Drumming
11 Pipers Piping
10 Lords a Leaping
9 Ladies Dancing
8 Maids a Milking
7 Swans a Swimming
6 Geese a Laying
5 Golden Rings
4 Calling Birds
3 French Hens
2 Turtle Doves
and a Partridge in a Pear Tree
日付が12月25日から1月5日までの範囲内にない場合:
Well I wish it could be Christmas every day
When the kids start singing and the band begins to play
Oh I wish it could be Christmas every day
So let the bells ring out for Christmas
ハッピークリスマス!
