-
Multiples of 3 and 5코딩 테스트/Level 1 2021. 4. 22. 20:40반응형
codingdojang.com/scode/350#answer-filter-area
def solution(n): return sum(x for x in range(1, n) if x % 3 == 0 or x % 5 == 0) print(solution(1000))
반응형
codingdojang.com/scode/350#answer-filter-area
def solution(n):
return sum(x for x in range(1, n) if x % 3 == 0 or x % 5 == 0)
print(solution(1000))