1≤n≤365 bir sayı verildiğinde, yılın ertesi gününü "Gün-Sayı Ayı" biçiminde verin. Örneğin, 1 verildiğinde, "1" olmadan "1 Ocak" yazmalısınız.
Gregoryen takvimi kullanılacak ve program artık yılları hesaba katmamalı, bu nedenle programınız hiçbir zaman "29 Şubat" yazmamalı. Herhangi bir yöntem, daha önce belirtilen "Gün-Sayı Ayı" biçimini izlediği sürece kullanılabilir. Programınız ayrıca sıralı olarak doğru çıktı vermelidir, yani her zaman 1., 2., 3. çıktıları göstermelidir, sırasıyla 1, 2 veya 3, herhangi bir giriş için gün sayısı olmalıdır. Önde gelen boşluklara veya diğer girintilere izin verilir.
Bu kod golf, yani karakterlerin en kısa çözümü kazanır.
Test durumları:
1 gives 1st January
2 gives 2nd January
3 gives 3rd January
365 gives 31st December
60 gives 1st March
11 gives 11th January
11
(11 inci Ocak) ve 21
(21 st testi davalara Ocak).
123=
gerekli çıktının bir parçası olduğunu düşündü . Ya da sadece şöyle bir şey okumak için test durumlarınızı düzenleyin: 365
gives31st December