Beispiel #1
0
def problem18(file):
    f = open(file, 'r')
    data = f.read().replace("\n", " ")
    realData = map(lambda a: a.strip(), data.split(" "))
    realData = filter(lambda a: not (a is None or a == ''), realData)
    tr = TriangleRouter(realData)
    return int(tr.find_max_route())
Beispiel #2
0
def problem18(data):
    realData = data.split(" ")
    tr = TriangleRouter(realData)
    return int(tr.find_max_route())