

from statistics import mean, stdev




def 			UpperCAmelCase__				(			_A      : list	,      _A      : int = 3							):





  '''simple docstring'''







  a__  =min(_lowerCamelCase							)
  a__  =max(_lowerCamelCase							)
  # normalize data
  return [round((x - x_min) / (x_max - x_min)	,      _lowerCamelCase							) for x in data]




def 			UpperCAmelCase__				(			_A      : list	,      _A      : int = 3							):





  '''simple docstring'''







  a__  =mean(_lowerCamelCase							)
  a__  =stdev(_lowerCamelCase							)
  # standardize data
  return [round((x - mu) / (sigma)	,      _lowerCamelCase							) for x in data]





'''simple docstring'''




from __future__ import annotations


def 				lowerCAmelCase_   (	_lowerCamelCase:   list[int]					):
		if not nums:
				return 0
		__SCREAMING_SNAKE_CASE       :		Optional[int]           =		nums[0]
		__SCREAMING_SNAKE_CASE       :		Union[str, Any]           =		0
		for num in nums[1:]:
				__SCREAMING_SNAKE_CASE       ,						__SCREAMING_SNAKE_CASE       :		Any           =		(
				    max_excluding + num,
				    max(_lowerCamelCase       ,      _lowerCamelCase					),
				)
		return max(_lowerCamelCase       ,      _lowerCamelCase					)


if __name__ == "__main__":
						import doctest

						doctest.testmod()