Puzzle (9) 썸네일형 리스트형 [Project Euler] Problem 1: Multiples of 3 and 5 참고 :https://www.nayuki.io/page/project-euler-solutionshttps://projecteuler.net/problem=1 # Python 3 total: int = 0 for i in range(1, 1000): if i % 3 == 0 or i % 5 == 0: total += i print("total =", total) # Python 3 print(sum([i for i in range(1, 1000) if i % 3 == 0 or i % 5 == 0])) // C/C++ #include #include #include #include int _tmain(INT32 argc, LPTSTR argv[]) { INT32 total = 0; for (INT32 i .. 이전 1 2 다음