remove debug output from solution
This commit is contained in:
parent
1782eec64f
commit
16a5fc040f
1 changed files with 0 additions and 30 deletions
30
day_8/2.c
30
day_8/2.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue