sum = 0
for a in range(1,2018):
for b in range(1,2018):
c=2019-a-b
d = str(a) + str(b) + str(c)
e = list(d)
if a + b + c == 2019 and c > 0 and a!=b and a!=c and b!=c :
if '2' not in e:
if '4' not in e:
sum+=1
final_result=sum/6
print(final_result)
print('阅卷老师辛苦了')
数的分解原创请勿转载
最新推荐文章于 2024-08-28 16:14:15 发布