






"""simple docstring"""


from __future__ import annotations




def     snake_case						(A_   :int			,    A_   :int   ):







  '''simple docstring'''

  if b == 0:
    return (1, 0)
  ((a),  (a))  :    List[str]       =     extended_euclid(A_			,    a % b   )
  a  :    Any       =     a // b
  return (y, x - k * y)




def     snake_case						(A_   :int			,    A_   :int			,    A_   :int			,    A_   :int   ):







  '''simple docstring'''

  ((a),  (a))  :    str       =     extended_euclid(A_			,    A_   )
  a  :    str       =     na * na
  a  :    Any       =     ra * x * na + ra * y * na
  return (n % m + m) % m




def     snake_case						(A_   :int			,    A_   :int   ):







  '''simple docstring'''

  ((a),  (a))  :    Union[str, Any]       =     extended_euclid(A_			,    A_   )
  if b < 0:
    a  :    Optional[Any]       =     (b % n + n) % n
  return b




def     snake_case						(A_   :int			,    A_   :int			,    A_   :int			,    A_   :int   ):







  '''simple docstring'''

  a,  a  :    int       =     invert_modulo(A_			,    A_   ), invert_modulo(A_			,    A_   )
  a  :    Optional[int]       =     na * na
  a  :    Tuple       =     ra * x * na + ra * y * na
  return (n % m + m) % m


if __name__ == "__main__":
   from doctest import testmod

   testmod(name='chinese_remainder_theorem', verbose=True)
   testmod(name='chinese_remainder_theorem2', verbose=True)
   testmod(name='invert_modulo', verbose=True)
   testmod(name='extended_euclid', verbose=True)












"""simple docstring"""


from __future__ import annotations




def     snake_case						(A_   :float			,    A_   :float			,    A_   :float   ):







  '''simple docstring'''

  if (voltage, current, resistance).count(0   ) != 1:
    raise ValueError('One and only one argument must be 0'   )
  if resistance < 0:
    raise ValueError('Resistance cannot be negative'   )
  if voltage == 0:
    return {"voltage": float(current * resistance   )}
  elif current == 0:
    return {"current": voltage / resistance}
  elif resistance == 0:
    return {"resistance": voltage / current}
  else:
    raise ValueError('Exactly one argument must be 0'   )


if __name__ == "__main__":
   import doctest

   doctest.testmod()




