Skip to main content
edited body
Source Link
emanresu A
  • 46.8k
  • 5
  • 119
  • 258

Python 2, 43 41 bytes

lambda a,b:((0,0),(a/2,b/2))[a*b%2*(a>1)]

Try it online!

No rocket science here.

-2 with thanks to @MrXcoder and @Enigma@Emigna

Python 2, 43 41 bytes

lambda a,b:((0,0),(a/2,b/2))[a*b%2*(a>1)]

Try it online!

No rocket science here.

-2 with thanks to @MrXcoder and @Enigma

Python 2, 43 41 bytes

lambda a,b:((0,0),(a/2,b/2))[a*b%2*(a>1)]

Try it online!

No rocket science here.

-2 with thanks to @MrXcoder and @Emigna

added 50 characters in body
Source Link
ElPedro
  • 6.5k
  • 2
  • 26
  • 39

Python 2, 4343 41 bytes

lambda a,b:((0,0),(a/2,b/2))[a!=1and a*b%2][a*b%2*(a>1)]

Try it online!Try it online!

No rocket science here.

-2 with thanks to @MrXcoder and @Enigma

Python 2, 43 bytes

lambda a,b:((0,0),(a/2,b/2))[a!=1and a*b%2]

Try it online!

No rocket science here.

Python 2, 43 41 bytes

lambda a,b:((0,0),(a/2,b/2))[a*b%2*(a>1)]

Try it online!

No rocket science here.

-2 with thanks to @MrXcoder and @Enigma

Source Link
ElPedro
  • 6.5k
  • 2
  • 26
  • 39

Python 2, 43 bytes

lambda a,b:((0,0),(a/2,b/2))[a!=1and a*b%2]

Try it online!

No rocket science here.