class Solution { public: int NumberOf1Between1AndN_Solution(int n) { int nums = 0; int m = 1; int lnum = 0, rnum = 0, mnum = 0; //按某位填1来算,如果那位真实值大于1,那么填1的所有情况都满足小于n //m为1,10,100... while(m <= n) { rnum = n % m;//当前位置右侧的数值...