Comment detail

与えられた数字のケタ数 (Nested Flatten)
1
2
3
4
def solve(n:int) = {
  val w = n.toString.length
  (w, Math.pow(10, w-1).toInt)
}

Index

Feed

Other

Link

Pathtraq

loading...