|
|
@ -50,7 +50,6 @@ int main( int argc, char *argv[] ){ |
|
|
|
|
|
|
|
|
|
|
|
for (unsigned int i= 0; i<count; i++ ){ |
|
|
|
for (unsigned int i= 0; i<count; i++ ){ |
|
|
|
fscanf( fp, "%i%c", &no, &ch ); |
|
|
|
fscanf( fp, "%i%c", &no, &ch ); |
|
|
|
printf("%i:",no); |
|
|
|
|
|
|
|
crabs[i] = no; |
|
|
|
crabs[i] = no; |
|
|
|
min = MIN( min, no ); |
|
|
|
min = MIN( min, no ); |
|
|
|
max = MAX( max, 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; |
|
|
|
unsigned int smallestCost = ~0; |
|
|
|
for ( unsigned int i = 0; i <= max; i++ ){ |
|
|
|
for ( unsigned int i = 0; i <= max; i++ ){ |
|
|
|