k,n,j;char a[99999]="1",s[9],*p,*q,*r;main(c){for(;++j<101;puts(p),k=0)for(p=a;r=p,q=p+99,strncmp(s,p,sprintf(s,"%d",j));p=c?(*q=49,q):q+1)for(c=0,p+=k,q+=k+=*(p-k)>52;p>=r;*q--=n-c*10)n=*p--*2-48+c,c=n>57;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).