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