



'''simple docstring'''





from __future__ import annotations




def lowerCAmelCase    (__A    ,      __A):



     """simple docstring"""



     if len(__A) < k or k < 0:
          raise ValueError('''Invalid Input''')
     _a           =    _a           =    sum(array[:k])
     for i in range(len(__A) - k):
          _a           =    current_sum - array[i] + array[i + k]
          _a           =    max(__A    ,      __A)
     return max_sum


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

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







def     __SCREAMING_SNAKE_CASE							(       lowercase_      ,       lowercase_      )		->     int:




						'''simple docstring'''







						return 1 if input_a == input_a else 0




def     __SCREAMING_SNAKE_CASE							(       )		->     None:




						'''simple docstring'''







						assert xnor_gate(0      ,       0      ) == 1
						assert xnor_gate(0      ,       1      ) == 0
						assert xnor_gate(1      ,       0      ) == 0
						assert xnor_gate(1      ,       1      ) == 1


if __name__ == "__main__":
				print(xnor_gate(0, 0))
				print(xnor_gate(0, 1))
				print(xnor_gate(1, 0))
				print(xnor_gate(1, 1))

