blob: a74339e3b6c73a226d8ce760866babfbe2e6b4be (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Advent of Code 2023
This is my first year trying the AoC. I decided to use C because it is the
language I know the best and I am familiar with the standard library.
I did not write many comments, but if you are curious about my solutions
send me an email and I'll be happy to explain!
## Instructions
Compile with `-std=c99`. Day 6 requires also the `-lm` option to link with the
math library, that is
```
$ cc -std=c99 -lm 06/6a.c
```
My solutions read from stdin, so run the e.g. with
```
$ ./a.out <in.txt
```
## Personal times
Note: New problems come out at 6am in my time zone. At some point in
mid-December I started waking up early to try and solve the problem
before work, but I could not always do it. On the weekend of December
16-17 I was busy and I could not solve any problem at all. Regarding
day 21, I just found it very hard and could not finish it within a day.
```
--------Part 1-------- --------Part 2--------
Day Time Rank Score Time Rank Score
25 06:11:14 4908 0 06:11:45 3911 0
24 03:00:50 3858 0 14:11:15 4807 0
23 02:02:06 3632 0 05:26:44 3292 0
22 00:45:32 876 0 01:02:38 853 0
21 00:23:53 2444 0 >24h 9076 0
20 01:47:17 3220 0 10:22:26 6402 0
19 08:16:48 13555 0 09:44:24 8192 0
18 14:34:39 17373 0 >24h 16383 0
17 >24h 17185 0 >24h 16114 0
16 >24h 26299 0 >24h 25438 0
15 00:13:49 4618 0 00:55:28 4721 0
14 00:16:47 2605 0 13:11:16 17486 0
13 01:38:27 6390 0 01:45:34 4662 0
12 00:45:36 3242 0 04:07:11 4066 0
11 01:33:57 8963 0 01:34:56 7427 0
10 02:58:19 9963 0 05:57:09 7684 0
9 02:38:53 13677 0 02:40:25 13016 0
8 00:27:21 7503 0 13:29:53 34979 0
7 01:56:33 11510 0 02:02:06 8448 0
6 01:53:38 16676 0 01:55:44 15724 0
5 03:24:25 18975 0 05:14:50 10799 0
4 03:04:29 26854 0 03:16:07 20315 0
3 03:38:55 17900 0 03:55:42 14753 0
2 03:44:00 24942 0 03:47:48 23122 0
1 03:14:59 28047 0 03:25:34 16991 0
|