remove debug output from solution

This commit is contained in:
Parker Macdonald 2024-12-08 02:48:06 -07:00
parent 1782eec64f
commit 16a5fc040f

View file

@ -85,36 +85,6 @@ int main(void) {
} }
} }
#ifdef DEBUG
for (unsigned int i = 0; i < GRID_SIZE; i++) {
for (unsigned int j = 0; j < GRID_SIZE; j++) {
unsigned char found_freq = 0;
for (unsigned int k = 0; k < 'z' + 1; k++) {
for (unsigned int l = 0; l < data[k].index; l++) {
if (data[k].points[l].x == j && data[k].points[l].y == i) {
printf("%c", k);
found_freq = 1;
break;
}
}
if (found_freq) {
break;
}
}
if (!found_freq) {
if (antinodes[i][j] == 1) {
printf("#");
continue;
}
printf(".");
}
}
printf("\n");
}
#endif
printf("%u\n", sum); printf("%u\n", sum);
fclose(fp); fclose(fp);