答复: 答复: 答复: [cpp] 一道据说是Google的面试题

张沈鹏 zsp007 at gmail.com
Tue Sep 19 13:12:35 CST 2006


个数是有限的,最大为1111111110

证明如下
f(10**n - 1 )= n*( 10**(n-1) )

当n>=10时,10**n - 1 < n*( 10**(n-1) ) 恒成立

所有当n>10时不存在f(n)=n


More information about the Cpp mailing list