
from __future__ import annotations


def 							a__					(							snake_case       ,			snake_case       ,			snake_case							):





  """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()





'''simple docstring'''
def A__       (	UpperCAmelCase_    ,    UpperCAmelCase_				):
						return int((input_a, input_a).count(0				) != 0				)






def A__       (	):
						assert nand_gate(0    ,    0				) == 1
						assert nand_gate(0    ,    1				) == 1
						assert nand_gate(1    ,    0				) == 1
						assert nand_gate(1    ,    1				) == 0


if __name__ == "__main__":
					print(nand_gate(0, 0))
					print(nand_gate(0, 1))
					print(nand_gate(1, 0))
					print(nand_gate(1, 1))


