Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
assertive solution in Creative category for Disposable Teleports by veky
def s(p,b,a,q,n="12345678"):
assert(b,a)!=(set(n),"1"),q+a
[s(p-{frozenset({a,d})},b|{d},d,q+a)for d in n if{a,d}in p]
def checkio(t):
try:s(set(map(frozenset,t.split(","))),set(),"1","")
except Exception as l:return l.args[0]
Aug. 3, 2013