Differences From Artifact [1552da6bee]:
- File aoc2015.c — part of check-in [c73a56324d] at 2024-12-04 18:48:23 on branch trunk — uses dynamic memory (user: nnz, size: 4590) [annotate] [blame] [check-ins using]
To Artifact [1008e51170]:
- File aoc2015.c — part of check-in [292a60d81c] at 2024-12-04 18:53:09 on branch trunk — added free() (user: nnz, size: 4607) [annotate] [blame] [check-ins using]
| ︙ | |||
83 84 85 86 87 88 89 90 91 92 93 94 95 96 | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | + |
}
house[nhouse].row = p[who].row;
house[nhouse].col = p[who].col;
nhouse += 1;
}
who = 1 - who; // santa; bot; santa; bot; ..., ..., ...
}
free(house);
printf("Santa and santa bot delivered at least 1 present to %u houses.\n", nhouse);
}
void aoc201502(char *data, size_t len) {
(void)len; // unused argument
unsigned sqf = 0, f = 0;
for (;;) {
|
| ︙ |