-
** 입사문제 중에서코딩 테스트/Level 1 2021. 4. 22. 19:59반응형
codingdojang.com/scode/365?answer_mode=hide
def solution(): return sum(set(range(1, 5000)) - {(sum(int(each) for each in str(num)) + num) for num in range(1, 5000)}) print(solution())
반응형
codingdojang.com/scode/365?answer_mode=hide
def solution():
return sum(set(range(1, 5000)) - {(sum(int(each) for each in str(num)) + num) for num in range(1, 5000)})
print(solution())