fork(1) 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);}
Runtime error #stdin #stdout 0.02s 2008KB
stdin
Standard input is empty
stdout
6062