如果你枚举要计算的数的最高位时是 for(n=1; n<=x; n*=10) 算的,记得开unsigned long long
for(n=1; n<=x; n*=10)
(应该没有人和本蒟蒻一样犯这么蠢的错误吧