


'''simple docstring'''






from __future__ import annotations


def  _snake_case       (					A			,   A	)						->   int:
							if len(A	) < k or k < 0:
														raise ValueError('''Invalid Input'''	)
							lowerCAmelCase__	       =     lowerCAmelCase__	       =     sum(array[:k]	)
							for i in range(len(A	) - k	):
														lowerCAmelCase__	       =     current_sum - array[i] + array[i + k]
														lowerCAmelCase__	       =     max(A			,   A	)
							return max_sum


if __name__ == "__main__":
		from doctest import testmod
		from random import randint

		testmod()
		__UpperCAmelCase       =							[randint(-1_000, 1_000) for i in range(100)]
		__UpperCAmelCase       =							randint(0, 110)
		print(f"""The maximum sum of {k} consecutive elements is {max_sum_in_array(array,k)}""")



'''simple docstring'''






from __future__ import annotations


def  _snake_case       (					A			,   A	)						->   float:
							lowerCAmelCase__	       =     sorted(numsa + numsa	)
							lowerCAmelCase__       , lowerCAmelCase__	       =     divmod(len(A	)			,   2	)
							if mod == 1:
														return all_numbers[div]
							else:
														return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		__UpperCAmelCase       =							[float(x) for x in input('''Enter the elements of first array: ''').split()]
		__UpperCAmelCase       =							[float(x) for x in input('''Enter the elements of second array: ''').split()]
		print(f"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")