题目:
代码:
res = 0
for a in range(1,2020):
for b in range(a+1,2020):
if 2019 - a - b > b :
c = 2019 - a - b
else:
break
s = str(a)+str(b)+str(c)
if '2' not in s and '4' not in s:
res+=1
print(res)
结果:40785