with open("sequences.txt") as file:
sequences = []
for line in file:
sequences.append(list(map(int, line.split()))[1:])
for seq in sequences:
current_length = max_length = 1
current_start = max_start = 0
for i in range(1, len(seq)):
if seq[i] > seq[i - 1]:
current_length += 1
if current_length > max_length:
max_length = current_length
max_start = current_start
else:
current_length = 1
current_start = i
print(f"Dlugosc: {max_length}, Sekwencja: ", end="")
print(*seq[max_start : max_start + max_length])