jnxfzybt
This commit is contained in:
13
2025/day05/отчаяние.py
Normal file
13
2025/day05/отчаяние.py
Normal 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)
|
||||
Reference in New Issue
Block a user