Day 6 - remove some printf s

master
Jonathan Hodgson 3 years ago
parent e4aba38d7a
commit c1c959fe2a
  1. 4
      day7/solution-part1.c
  2. 2
      day7/solution-part2.c

@ -50,7 +50,6 @@ int main( int argc, char *argv[] ){
for (unsigned int i= 0; i<count; i++ ){
fscanf( fp, "%i%c", &no, &ch );
printf("%i:",no);
crabs[i] = no;
min = MIN( min, no );
max = MAX( max, no );
@ -58,9 +57,6 @@ int main( int argc, char *argv[] ){
printf("\n\nCount: %i\nMin: %i\nMax: %i\n",count, min, max);
printf("First: %i\n", crabs[0]);
unsigned int smallestCost = ~0;
for ( unsigned int i = 0; i <= max; i++ ){

@ -61,9 +61,7 @@ int main( int argc, char *argv[] ){
printf("\n\nCount: %i\nMin: %i\nMax: %i\n",count, min, max);
printf("First: %i\n", crabs[0]);
unsigned int smallestCost = ~0;
for ( unsigned int i = 0; i <= max; i++ ){

Loading…
Cancel
Save