Skip to main content
1 of 2
Dead Possum
  • 3.5k
  • 14
  • 25

Python 2, 41 bytes

lambda a,b:~-a*(a*b%2)and(a/2,b/2)or(0,0) 

Try it online!

Dead Possum
  • 3.5k
  • 14
  • 25