Solve problem 92

This commit is contained in:
2021-04-19 09:06:06 -04:00
parent 01ce98cec6
commit f5559af1b1
2 changed files with 53 additions and 0 deletions

24
python/e099.py Normal file
View File

@@ -0,0 +1,24 @@
# def lower_upper_bound(a, b):
# print(a, b)
# return 0
def euler_099():
with open("../txt/EulerProblem099.txt", "r") as f:
pairs = [(int(s[0]), int(s[1]), i)
for i, line in enumerate(f.readlines())
if (s := line.split(","))]
# pairs.sort()
print(pairs[:2])
return 0
if __name__ == "__main__":
solution = euler_099()
print("e099.py: " + str(solution))
assert(solution == 0)