Code Festival C Div and Add by mitchs (llhuii)

j=2;a[];main(i){for(;j=--j?:i<99?++i:gets(a)&&printf("%d\n",a[atoi()]?:19);)a[i]=fmax(a[i],a[i%j?0:j]+i-i/10*9);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page