You are viewing a single comment's thread. Return to all comments →
Python 3 solution
def solve(year): sum = 243 if year in range(1919, 2701): #gregorian if year % 400 == 0 or year % 4 == 0 and year % 100 != 0: sum += 1 elif year in range(1700, 1918): #julian if year % 4 == 0: sum += 1 else: #year 1918 sum -= 13 date = 256 - sum return "{0}.09.{1}".format(date, year)
Seems like cookies are disabled on this browser, please enable them to open this website
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
Python 3 solution