psf/black code formatting (#1277)

This commit is contained in:
William Zhang
2019-10-05 01:14:13 -04:00
committed by Christian Clauss
parent 07f04a2e55
commit 9eac17a408
291 changed files with 6014 additions and 4571 deletions

View File

@ -23,12 +23,12 @@ def solution():
7273
"""
script_dir = os.path.dirname(os.path.realpath(__file__))
triangle = os.path.join(script_dir, 'triangle.txt')
triangle = os.path.join(script_dir, "triangle.txt")
with open(triangle, 'r') as f:
with open(triangle, "r") as f:
triangle = f.readlines()
a = map(lambda x: x.rstrip('\r\n').split(' '), triangle)
a = map(lambda x: x.rstrip("\r\n").split(" "), triangle)
a = list(map(lambda x: list(map(lambda y: int(y), x)), a))
for i in range(1, len(a)):