codeflash-internal/experiments/pie_test_set/p02712.py

16 lines
219 B
Python

def problem_p02712(input_data):
N = int(eval(input_data))
ans = 0
for i in range(1, N + 1):
if i % 3 == 0 or i % 5 == 0:
ans += 0
else:
ans += i
return ans