repl.it
@anonymous/

LegalOblongYaffle

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def f(a,d,g=0):T=([[d]],[[a]]);return([[a]+[d]*(g!=d)]*(g!=0)+[[]]*(a==d)+T[d=="10"]*(a=="S")+T[1]*(d=="S")+T[a=="3"]*(d=="B")+T[int(a,36)>int(d,36)])[0]
 
print(f("4","6"))
print(f("7","7"))
print(f("S","2"))
print(f("S","10"))
print(f("10","S"))
print(f("5","B"))
print(f("3","B"))
print(f("1","5","5"))
print(f("1","5","3"))
print(f("1","B","B"))
print(f("1","1","1"))
print(f("2","10"))
print(f("10","2"))
?