fork download
  1. n=1e6,m,c,d;main(){while(c+=d==42,d=0,m=--n)while(d+=m%10,m/=10);printf("%d\n",c);}
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
6062