



'''simple docstring'''





class 					snake_case			:



       def __init__(					self  ,UpperCAmelCase_   )	->				Union[str, Any]:
           # we need a list not a string, so do something to change the type
           lowercase__									=    arr.split(","   )







       def 				_a   (					self   )	->				Union[str, Any]:
           lowercase__									=    [int(self.array[0]   )] * len(self.array   )
           lowercase__									=    [int(self.array[0]   )] * len(self.array   )
           for i in range(1  ,len(self.array   )   ):
               lowercase__									=    max(
                   int(self.array[i]   ) + sum_value[i - 1]  ,int(self.array[i]   )   )
               lowercase__									=    max(sum_value[i]  ,rear[i - 1]   )
           return rear[len(self.array   ) - 1]


if __name__ == "__main__":
 SCREAMING_SNAKE_CASE__          =  input("please input some numbers:")
 SCREAMING_SNAKE_CASE__          =  SubArray(whole_array)
 SCREAMING_SNAKE_CASE__          =  array.solve_sub_array()
 print(("the results is:", re))









'''simple docstring'''





def 							lowerCamelCase	(					_snake_case	:    list							):





    '''simple docstring'''


    if not isinstance(_snake_case  ,_snake_case							):
        raise ValueError("Input series is not valid, valid series - [2, 4, 6]"							)
    if len(_snake_case							) == 0:
        raise ValueError("Input list must be a non empty list"							)
    if len(_snake_case							) == 1:
        return True
    lowercase__									=    series[1] - series[0]
    for index in range(len(_snake_case							) - 1							):
        if series[index + 1] - series[index] != common_diff:
            return False
    return True




def 							lowerCamelCase	(					_snake_case	:    list							):





    '''simple docstring'''


    if not isinstance(_snake_case  ,_snake_case							):
        raise ValueError("Input series is not valid, valid series - [2, 4, 6]"							)
    if len(_snake_case							) == 0:
        raise ValueError("Input list must be a non empty list"							)
    lowercase__									=    0
    for val in series:
        answer += val
    return answer / len(_snake_case							)


if __name__ == "__main__":
 import doctest

 doctest.testmod()




