mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
16 lines
219 B
Python
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
|