vault backup: 2023-11-20 13:48:04

This commit is contained in:
Louis Gallet 2023-11-20 13:48:04 +01:00
parent f638273eed
commit a6fa09555d
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -48,9 +48,11 @@ def multiplication2(x: int, y: int) -> int:
def multiplication2(x: int, y: int) -> int:
if x < 0 and y < 0:
return multiplication(-x, -y) * (-1)
return multiplication(-x, -y)
elif y < 0:
return multiplication(x, -y) * (-1)
return -multiplication(x, -y)
elif x < 0:
return -multiplication(-x, y)
else
return multiplication(x, y)
```