



class        UpperCAmelCase_  :

						'''simple docstring'''




						def __init__(   self				,							_A		):







													'''simple docstring'''

													__SCREAMING_SNAKE_CASE									= len(_A		)
													__SCREAMING_SNAKE_CASE									= [0] * len_array

													if len_array > 0:
																				__SCREAMING_SNAKE_CASE									= array[0]

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






						def 	_A     (   self				,							_A				,							_A		):







													'''simple docstring'''

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

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






						def 	_A     (   self				,							_A		):







													'''simple docstring'''

													__SCREAMING_SNAKE_CASE									= {0}
													for sum_item in self.prefix_sum:
																				if sum_item - target_sum in sums:
																											return True

																				sums.add(_A		)

													return False


if __name__ == "__main__":
			import doctest

			doctest.testmod()











lowerCAmelCase__		:					Optional[int]							=9.80_665






def      __lowercase       (			a__							,       a__							,       a__ = g       )    ->			float:

							if fluid_density <= 0:
														raise ValueError('Impossible fluid density'       )
							if volume < 0:
														raise ValueError('Impossible Object volume'       )
							if gravity <= 0:
														raise ValueError('Impossible Gravity'       )

							return fluid_density * gravity * volume


if __name__ == "__main__":
			import doctest

			# run doctest
			doctest.testmod()






