






"""simple docstring"""


import enum
import shutil
import sys


lowercase_     ,		lowercase_				     =     shutil.get_terminal_size()

lowercase_				     =     {'UP': 'A', 'DOWN': 'B', 'RIGHT': 'C', 'LEFT': 'D'}


class 					snake_case		(							enum.Enum						):


   '''simple docstring'''

   A_						:	int						 = 0
   A_						:	Tuple						 = 1





def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase="" ):




  """simple docstring"""







  sys.stdout.write(str(__UpperCamelCase ) + end )
  sys.stdout.flush()



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase		,       __UpperCamelCase="" ):




  """simple docstring"""







  forceWrite(f'\u001b[{color}m{content}\u001b[0m'		,       __UpperCamelCase )



def 					lowerCAmelCase				(    ):




  """simple docstring"""







  forceWrite('''\r''' )



def 					lowerCAmelCase				(    __UpperCamelCase		,       __UpperCamelCase ):




  """simple docstring"""







  forceWrite(f'\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}' )



def 					lowerCAmelCase				(    ):




  """simple docstring"""







  forceWrite(''' ''' * TERMINAL_WIDTH )
  reset_cursor()





def 					lowerCAmelCase				(    ):




  """simple docstring"""







  reset_cursor()
  forceWrite('''-''' * TERMINAL_WIDTH )












"""simple docstring"""


class 					snake_case		:


   '''simple docstring'''

   def __init__(	self :     List[str],       _lowerCamelCase :     list[int]  ):

     '''simple docstring'''
     __A									= len(_lowerCamelCase  )
     __A									= [0] * len_array

     if len_array > 0:
       __A									= array[0]

     for i in range(1,       _lowerCamelCase  ):
       __A									= self.prefix_sum[i - 1] + array[i]


   def 				_SCREAMING_SNAKE_CASE				(	self :     List[Any],       _lowerCamelCase :     int,       _lowerCamelCase :     int  ):

     '''simple docstring'''
     if start == 0:
       return self.prefix_sum[end]

     return self.prefix_sum[end] - self.prefix_sum[start - 1]






   def 				_SCREAMING_SNAKE_CASE				(	self :     List[str],       _lowerCamelCase :     int  ):

     '''simple docstring'''
     __A									= {0}
     for sum_item in self.prefix_sum:
       if sum_item - target_sum in sums:
         return True

       sums.add(_lowerCamelCase  )

     return False


if __name__ == "__main__":
       import doctest

       doctest.testmod()




