This commit is contained in:
Lauri Jesmin
2023-12-05 15:09:06 +02:00
parent 8ceef6add0
commit d6553eb4ac

View File

@@ -34,13 +34,17 @@ for line in lines:
temp = re.findall(r'\d+', line) temp = re.findall(r'\d+', line)
tableitems = list(map(int, temp)) tableitems = list(map(int, temp))
table.append(Range(*tableitems)) table.append(Range(*tableitems))
tables.append(table)
print(seeds) print(seeds)
print(tables) for table in tables:
print("tabel")
for rida in table:
print(rida)
pisim = 0 pisim = 0
for arv in seeds: for arv in seeds:
print(arv) print(f"Algus: {arv}")
for table in tables: for table in tables:
muudetud = False muudetud = False
print("tabel") print("tabel")
@@ -51,7 +55,7 @@ for arv in seeds:
print(f"Uus arv: {arv}") print(f"Uus arv: {arv}")
break break
print(arv) print(f"Vastus: {arv}")
if pisim == 0: if pisim == 0:
pisim = arv pisim = arv
if pisim > arv: if pisim > arv: