Skip to main content
added 87 characters in body
Source Link
Okx
  • 16.4k
  • 5
  • 43
  • 113

Elixir, 81 bytes

fn b->[n,d]=String.split b,"/";String.to_integer(d)==:math.pow 10,byte_size n end

Try it online!

Might be able to get somewhere with {n,"/"<>d}=Integer.parse b, but not sure how.

Elixir, 81 bytes

fn b->[n,d]=String.split b,"/";String.to_integer(d)==:math.pow 10,byte_size n end

Try it online!

Elixir, 81 bytes

fn b->[n,d]=String.split b,"/";String.to_integer(d)==:math.pow 10,byte_size n end

Try it online!

Might be able to get somewhere with {n,"/"<>d}=Integer.parse b, but not sure how.

Source Link
Okx
  • 16.4k
  • 5
  • 43
  • 113

Elixir, 81 bytes

fn b->[n,d]=String.split b,"/";String.to_integer(d)==:math.pow 10,byte_size n end

Try it online!