83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
}
house[nhouse].row = p[who].row;
house[nhouse].col = p[who].col;
nhouse += 1;
}
who = 1 - who; // santa; bot; santa; bot; ..., ..., ...
}
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 (;;) {
|
>
|
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 (;;) {
|