You are viewing a single comment's thread. Return to all comments →
Python 2
def solve(year): if (year == 1918): return '26.09.1918' elif ((year <= 1917) & (year%4 == 0)) or ((year > 1918) & (year%400 == 0 or ((year%4 == 0) & (year%100 != 0)))): return '12.09.%s' %year else: return '13.09.%s' %year
Day of the Programmer
You are viewing a single comment's thread. Return to all comments →
Python 2