






from __future__ import annotations

from cmath import sqrt







def       UpperCAmelCase							(     _lowerCamelCase      :  int			,   _lowerCamelCase      :  int			,   _lowerCamelCase      :  int     ):





						'''simple docstring'''


						if a == 0:
												raise ValueError("Coefficient 'a' must not be zero."     )
						SCREAMING_SNAKE_CASE__     :				str   =					b * b - 4 * a * c

						SCREAMING_SNAKE_CASE__     :				int   =					(-b + sqrt(_lowerCamelCase     )) / (2 * a)
						SCREAMING_SNAKE_CASE__     :				Dict   =					(-b - sqrt(_lowerCamelCase     )) / (2 * a)

						return (
						    root_a.real if not root_a.imag else root_a,
						    root_a.real if not root_a.imag else root_a,
						)







def       UpperCAmelCase							(     ):





						'''simple docstring'''


						SCREAMING_SNAKE_CASE__     :				int   =					quadratic_roots(a=5			,   b=6			,   c=1     )
						print(f"""The solutions are: {solutiona} and {solutiona}"""     )


if __name__ == "__main__":
				main()






from __future__ import annotations







def       UpperCAmelCase							(     _lowerCamelCase      :  list[int]			,   _lowerCamelCase      :  int     ):





						'''simple docstring'''


						if len(_lowerCamelCase     ) < k or k < 0:
												raise ValueError("Invalid Input"     )
						SCREAMING_SNAKE_CASE__     :				int   =					sum(array[:k]     )
						for i in range(len(_lowerCamelCase     ) - k     ):
												SCREAMING_SNAKE_CASE__     :				str   =					current_sum - array[i] + array[i + k]
												SCREAMING_SNAKE_CASE__     :				Union[str, Any]   =					max(_lowerCamelCase			,   _lowerCamelCase     )
						return max_sum


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

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