This commit is contained in:
Alexey Barabanov
2025-12-05 20:45:17 +03:00
parent 369b065e85
commit 48a275021c
6 changed files with 2740 additions and 1211 deletions

View File

@@ -0,0 +1,13 @@
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)