题目:给定整数n,求所有小于等于它的正整数拼在一起的长度 n = int(input()) for i in range(n): num = int(input()) count=0 result=0 i=1 while num!=0: if num//(10**i)==0: count=num-(10**(i-1))+1 num = 10**(i-1)-1 result+=count*i i-=1 else: ...