





"""simple docstring"""
class       a							:



 def __init__(     self				,       _snake_case     ):







  """simple docstring"""






  lowerCAmelCase    				= arr.split(','     )



 def    UpperCamelCase__  (     self     ):







  """simple docstring"""






  lowerCAmelCase    				= [int(self.array[0]     )] * len(self.array     )
  lowerCAmelCase    				= [int(self.array[0]     )] * len(self.array     )
  for i in range(1				,       len(self.array     )     ):
   lowerCAmelCase    				= max(
       int(self.array[i]     ) + sum_value[i - 1]				,       int(self.array[i]     )     )
   lowerCAmelCase    				= max(sum_value[i]				,       rear[i - 1]     )
  return rear[len(self.array     ) - 1]


if __name__ == "__main__":
       __UpperCamelCase     :						Dict						       =  input('''please input some numbers:''')
       __UpperCamelCase     :						List[str]						       =  SubArray(whole_array)
       __UpperCamelCase     :						Union[str, Any]						       =  array.solve_sub_array()
       print(('''the results is:''', re))












"""simple docstring"""
from __future__ import annotations

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    list[float]			):
 lowerCAmelCase    				= 0.00
 lowerCAmelCase    				= 0
 for resistor in resistors:
  if resistor <= 0:
   lowerCAmelCase    				= F'Resistor at index {index} has a negative or zero value!'
   raise ValueError(_UpperCAmelCase			)
  first_sum += 1 / float(_UpperCAmelCase			)
  index += 1
 return 1 / first_sum

def 		_SCREAMING_SNAKE_CASE			(_UpperCAmelCase					:    list[float]			):
 lowerCAmelCase    				= 0.00
 lowerCAmelCase    				= 0
 for resistor in resistors:
  sum_r += resistor
  if resistor < 0:
   lowerCAmelCase    				= F'Resistor at index {index} has a negative value!'
   raise ValueError(_UpperCAmelCase			)
  index += 1
 return sum_r


if __name__ == "__main__":
       import doctest

       doctest.testmod()





