repl.it
@anonymous/

FalseSeriousMullet

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
def f(d):d=[d[:2],d[3:]];y=sum([31,29,31,30,31,30,31,31,30,31,30,31][:int(d[1])-1])+int(d[0]);return filter(lambda n:n>=y,[85,86,88,116,123,277,360,361,362,367])[0]-y

print f("01-05")
print f("02-05")
print f("03/05")
print f("25-12")
print f("26/12")
print f("27/12")
print f("30-12")
print f("31/12")
Fetching token
?