


from __future__ import annotations
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__			):
 __lowerCamelCase		:							List[Any]		 =						str(SCREAMING_SNAKE_CASE__			)
 return len(SCREAMING_SNAKE_CASE__			) == 9 and set(SCREAMING_SNAKE_CASE__			) == set('123456789'			)
def 				UpperCamelCase__					(  ):
 for base_num in range(9_999      ,	4_999      ,	-1			):
  __lowerCamelCase		:							Tuple		 =						100_002 * base_num
  if is_9_pandigital(SCREAMING_SNAKE_CASE__			):
   return candidate

 for base_num in range(333      ,	99      ,	-1			):
  __lowerCamelCase		:							Union[str, Any]		 =						1_002_003 * base_num
  if is_9_pandigital(SCREAMING_SNAKE_CASE__			):
   return candidate

 return None


if __name__ == "__main__":
       print(F"""{solution() = }""")





from __future__ import annotations
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Optional[Any]		 =						0.00
 __lowerCamelCase		:							Tuple		 =						0
 for resistor in resistors:
  if resistor <= 0:
   __lowerCamelCase		:							Union[str, Any]		 =						f'Resistor at index {index} has a negative or zero value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  first_sum += 1 / float(SCREAMING_SNAKE_CASE__						)
  index += 1
 return 1 / first_sum
def 				UpperCamelCase__					(  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							Union[str, Any]		 =						0.00
 __lowerCamelCase		:							str		 =						0
 for resistor in resistors:
  sum_r += resistor
  if resistor < 0:
   __lowerCamelCase		:							Any		 =						f'Resistor at index {index} has a negative value!'
   raise ValueError(SCREAMING_SNAKE_CASE__						)
  index += 1
 return sum_r


if __name__ == "__main__":
       import doctest

       doctest.testmod()

