Skip to main content
added 407 characters in body
Source Link
Jo King
  • 48.1k
  • 6
  • 131
  • 187

Perl 6, 43 13 bytes

(*-1)*(*-1)-1

Try it online!

Turns out there's a much shorter way to calculate the answer.

Perl 6, 43 bytes

->\a,\b{max ^(a*b)∖((a X*^b)X+(^a X*b)):}

Try it online!

Perl 6, 43 bytes

->\a,\b{max ^(a*b)∖((a X*^b)X+(^a X*b)):}

Try it online!

Perl 6, 43 13 bytes

(*-1)*(*-1)-1

Try it online!

Turns out there's a much shorter way to calculate the answer.

Perl 6, 43 bytes

->\a,\b{max ^(a*b)∖((a X*^b)X+(^a X*b)):}

Try it online!

Source Link
Jo King
  • 48.1k
  • 6
  • 131
  • 187

Perl 6, 43 bytes

->\a,\b{max ^(a*b)∖((a X*^b)X+(^a X*b)):}

Try it online!