提交时间:2023-11-17 09:42:26
运行 ID: 408
n=int(input()) sum=0 for i in range(1,n+1): if i%7!=0 and ("7" not in str(i)): sum+=i*i print(sum)