codewars.com 문제 풀기2
2020. 9. 30.
문제2. Welcome. In this kata, you are asked to square every digit of a number and concatenate them. For example, if we run 9119 through the function, 811181 will come out, because 92 is 81 and 12 is 1. Note: The function accepts an integer and returns an integer 숫자 9119가 주어졌을 때, 모든 자릿수의 제곱근을 구하여 붙여서 리턴하는 문제이다. 즉, 9의2승, 1의 2승, 1의 2승, 9의 2승 81, 1, 1, 81 를 스트링 값으로 붙이면 811181 인데, 이것을 결국엔 integer 타입으로 ..