• + 0 comments
    connectingTowns(n, routes):
        p = 1
        for x in range(n-1):
            p = p * routes[x]
        return p%1234567
    

    lol..what a troll, this is just the number of ways to walk routes. hahahhaahahaha