Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
58794 蔡璟恒 【循环】整除问题(divide) Python3 Accepted 49 MS 3764 KB 106 2023-10-01 14:57:31

Tests(5/5):


Code:

n=int(input()) count=0 for i in range(1,n+1): if i%3==0 and i%5==0: count+=i print(count)