How many 3 digits numbers have exactly one digit 5 in them?

问题描述:

How many 3 digits numbers have exactly one digit 5 in them?
ji

既然是3位数字,那么考虑区间就是100-999
情况1,有一个5:9*9=81个
情况2,有两个5:9+9=18个
情况3,有三个5:1个
总共:100个