public int NumberOf1Between1AndN_Solution(int n) {
//暴力破解
int number = 0;
for(int i = 1 ;i<=n ;i++){
int temp = i;
while(temp > 0){
if(temp % 10 == 1){
number ++;
}
temp /= 10;
}
}
return number;
}
}