Files
advent-of-code/2025/day05/отчаяние.py
Alexey Barabanov 48a275021c jnxfzybt
2025-12-05 20:45:17 +03:00

14 lines
375 B
Python

with open("input.txt", "r") as file:
input = file.read()
range_list = list(map(list, [row.split("-") for row in input.split("\n\n")[0].strip().split("\n")]))
items_list = list(map(int, input.split("\n\n")[1].strip().split("\n")))
for i in range_list:
a = range(int(i[0]),int(i[1]))
a_list = list(a)
print(a)
# a_set = set(a_list)
# for b in a_set:
# print(b)