



from __future__ import annotations

from collections import namedtuple






def  UpperCAmelCase__    (    lowercase__						,       lowercase__						,       lowercase__   ) ->      tuple:
						__lowercase					=				namedtuple("""result"""						,       """name value"""   )
						if (voltage, current, power).count(0   ) != 1:
												raise ValueError("""Only one argument must be 0"""   )
						elif power < 0:
												raise ValueError(
												    """Power cannot be negative in any electrical/electronics system"""   )
						elif voltage == 0:
												return result("""voltage"""						,       power / current   )
						elif current == 0:
												return result("""current"""						,       power / voltage   )
						elif power == 0:
												return result("""power"""						,       float(round(abs(voltage * current   )						,       2   )   )   )
						else:
												raise ValueError("""Exactly one argument must be 0"""   )


if __name__ == "__main__":
			import doctest

			doctest.testmod()










def  UpperCAmelCase__    (    lowercase__   ) ->      Optional[int]:
						__lowercase					=				len(lowercase__   )
						__lowercase					=				sum(lowercase__   )

						__lowercase					=				[[False for x in range(s + 1   )] for y in range(n + 1   )]

						for i in range(1						,       n + 1   ):
												__lowercase					=				True

						for i in range(1						,       s + 1   ):
												__lowercase					=				False

						for i in range(1						,       n + 1   ):
												for j in range(1						,       s + 1   ):
																		__lowercase					=				dp[i][j - 1]

																		if arr[i - 1] <= j:
																								__lowercase					=				dp[i][j] or dp[i - 1][j - arr[i - 1]]

						for j in range(int(s / 2   )						,       -1						,       -1   ):
												if dp[n][j] is True:
																		__lowercase					=				s - 2 * j
																		break

						return diff





