计算一串数长度的便捷数学方法

int length(long long n)
{
    return (int)log10(n)+1;
}

 

posted @ 2018-04-20 15:18  Somnus、M  阅读(258)  评论(0)    收藏  举报