


def 						_lowerCamelCase		(							SCREAMING_SNAKE_CASE_				: Tuple      ):






							"""simple docstring"""



							if not isinstance(lowercase_	,	lowercase_      ):
														raise ValueError("""double_factorial() only accepts integral values"""      )
							if num < 0:
														raise ValueError("""double_factorial() not defined for negative values"""      )
							a_       :   Union[str, Any]			=	1
							for i in range(lowercase_	,	0	,	-2      ):
														value *= i
							return value


if __name__ == "__main__":
			import doctest

			doctest.testmod()






def 						_lowerCamelCase		(							SCREAMING_SNAKE_CASE_				: list[int]      ):






							"""simple docstring"""



							a_       :   List[Any]			=	len(SCREAMING_SNAKE_CASE_      )
							if n in (0, 1):
														return 0
							return sum(query * (n - i - 1) for i, query in enumerate(sorted(SCREAMING_SNAKE_CASE_      )      )      )


if __name__ == "__main__":
	import doctest

	doctest.testmod()


