avoid this: > if (mults[18]<1000) fprintf(pOut,"0"); > if (mults[18]<100) fprintf(pOut,"0"); > if (mults[18]<10) fprintf(pOut,"0"); > fprintf(pOut,"%d\n",mults[18]);
use instead: fprintf(pOut, "%04d\n", mults[18]); -- M@ http://matteolandi.altervista.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to google-code@googlegroups.com To unsubscribe from this group, send email to google-code+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-code?hl=en -~----------~----~----~----~------~----~------~--~---