1
2
3
4
5
6
7
8
9
10
11
12
|
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "aocdailies.h"
#include "aocutils.h"
struct House {
int row, col;
};
void aoc201503(char *data, size_t len) {
(void)len; // unused argument
|
>
>
>
>
>
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "aocdailies.h"
#include "aocutils.h"
void aoc201504(char *data, size_t len) {
(void)len; // unused argument
unsigned extra = 1;
char longkey[128];
for (;;) {
sprintf(longkey, "%s%u", data, extra);
//md5(longkey);
if (1) break;
extra++;
}
printf("Follow your key with %u to obtain five zeroes\n", extra);
}
struct House {
int row, col;
};
void aoc201503(char *data, size_t len) {
(void)len; // unused argument
|