diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-03 13:24:27 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-03 13:24:27 +0100 |
| commit | 31c9f59a5f8946e8d90f2aad96e065ab4b496b67 (patch) | |
| tree | 5eb94cd15ced3f3dcf05f9e11580fab5898a3699 | |
| parent | 2329b38f531bc93de6e682e1af9e995072c6175c (diff) | |
| download | aoc-31c9f59a5f8946e8d90f2aad96e065ab4b496b67.tar.gz aoc-31c9f59a5f8946e8d90f2aad96e065ab4b496b67.zip | |
Add comments and personal times to READMEs
| -rw-r--r-- | 2023/README.md | 37 | ||||
| -rw-r--r-- | 2024/README.md | 37 | ||||
| -rw-r--r-- | 2025/README.md | 43 |
3 files changed, 117 insertions, 0 deletions
diff --git a/2023/README.md b/2023/README.md index 1a427bf..a74339e 100644 --- a/2023/README.md +++ b/2023/README.md | |||
| @@ -20,3 +20,40 @@ My solutions read from stdin, so run the e.g. with | |||
| 20 | ``` | 20 | ``` |
| 21 | $ ./a.out <in.txt | 21 | $ ./a.out <in.txt |
| 22 | ``` | 22 | ``` |
| 23 | |||
| 24 | ## Personal times | ||
| 25 | |||
| 26 | Note: New problems come out at 6am in my time zone. At some point in | ||
| 27 | mid-December I started waking up early to try and solve the problem | ||
| 28 | before work, but I could not always do it. On the weekend of December | ||
| 29 | 16-17 I was busy and I could not solve any problem at all. Regarding | ||
| 30 | day 21, I just found it very hard and could not finish it within a day. | ||
| 31 | |||
| 32 | ``` | ||
| 33 | --------Part 1-------- --------Part 2-------- | ||
| 34 | Day Time Rank Score Time Rank Score | ||
| 35 | 25 06:11:14 4908 0 06:11:45 3911 0 | ||
| 36 | 24 03:00:50 3858 0 14:11:15 4807 0 | ||
| 37 | 23 02:02:06 3632 0 05:26:44 3292 0 | ||
| 38 | 22 00:45:32 876 0 01:02:38 853 0 | ||
| 39 | 21 00:23:53 2444 0 >24h 9076 0 | ||
| 40 | 20 01:47:17 3220 0 10:22:26 6402 0 | ||
| 41 | 19 08:16:48 13555 0 09:44:24 8192 0 | ||
| 42 | 18 14:34:39 17373 0 >24h 16383 0 | ||
| 43 | 17 >24h 17185 0 >24h 16114 0 | ||
| 44 | 16 >24h 26299 0 >24h 25438 0 | ||
| 45 | 15 00:13:49 4618 0 00:55:28 4721 0 | ||
| 46 | 14 00:16:47 2605 0 13:11:16 17486 0 | ||
| 47 | 13 01:38:27 6390 0 01:45:34 4662 0 | ||
| 48 | 12 00:45:36 3242 0 04:07:11 4066 0 | ||
| 49 | 11 01:33:57 8963 0 01:34:56 7427 0 | ||
| 50 | 10 02:58:19 9963 0 05:57:09 7684 0 | ||
| 51 | 9 02:38:53 13677 0 02:40:25 13016 0 | ||
| 52 | 8 00:27:21 7503 0 13:29:53 34979 0 | ||
| 53 | 7 01:56:33 11510 0 02:02:06 8448 0 | ||
| 54 | 6 01:53:38 16676 0 01:55:44 15724 0 | ||
| 55 | 5 03:24:25 18975 0 05:14:50 10799 0 | ||
| 56 | 4 03:04:29 26854 0 03:16:07 20315 0 | ||
| 57 | 3 03:38:55 17900 0 03:55:42 14753 0 | ||
| 58 | 2 03:44:00 24942 0 03:47:48 23122 0 | ||
| 59 | 1 03:14:59 28047 0 03:25:34 16991 0 | ||
diff --git a/2024/README.md b/2024/README.md index 4f2580b..a451993 100644 --- a/2024/README.md +++ b/2024/README.md | |||
| @@ -39,3 +39,40 @@ terminate the input. | |||
| 39 | 39 | ||
| 40 | For second part you can edit the file `dayNNb.cpp` and run `make btest` | 40 | For second part you can edit the file `dayNNb.cpp` and run `make btest` |
| 41 | and `make brun`. | 41 | and `make brun`. |
| 42 | |||
| 43 | ## Personal times | ||
| 44 | |||
| 45 | Note: New problems come out at 6am in my time zone. This year I often | ||
| 46 | (but not always) woke up a little earlier than 6am to start working on the | ||
| 47 | problem as soon as possible. Times longer than 3-4 hours mean that I could | ||
| 48 | not finish it before work, and I had to come back to it in the evening. | ||
| 49 | |||
| 50 | ``` | ||
| 51 | --------Part 1-------- --------Part 2-------- | ||
| 52 | Day Time Rank Score Time Rank Score | ||
| 53 | 25 00:54:10 4422 0 00:54:16 3269 0 | ||
| 54 | 24 11:44:35 15839 0 18:35:30 8732 0 | ||
| 55 | 23 00:18:38 2083 0 01:53:35 4086 0 | ||
| 56 | 22 01:04:02 4637 0 02:51:45 4681 0 | ||
| 57 | 21 02:19:57 1984 0 02:53:08 1143 0 | ||
| 58 | 20 00:41:17 2132 0 01:07:13 1603 0 | ||
| 59 | 19 00:24:23 3105 0 00:31:20 2456 0 | ||
| 60 | 18 00:30:40 3511 0 00:34:02 2739 0 | ||
| 61 | 17 00:29:54 2025 0 02:36:06 2128 0 | ||
| 62 | 16 00:56:46 3612 0 03:34:41 5061 0 | ||
| 63 | 15 02:08:45 7410 0 03:05:07 4474 0 | ||
| 64 | 14 00:23:18 2528 0 02:35:21 6607 0 | ||
| 65 | 13 00:22:24 2299 0 00:39:37 1593 0 | ||
| 66 | 12 00:27:28 3133 0 06:45:37 10514 0 | ||
| 67 | 11 00:46:47 9102 0 01:03:57 5013 0 | ||
| 68 | 10 00:12:16 1480 0 00:14:06 1130 0 | ||
| 69 | 9 00:14:06 962 0 00:34:43 888 0 | ||
| 70 | 8 01:30:36 9024 0 01:48:47 8635 0 | ||
| 71 | 7 01:43:27 10720 0 01:51:28 9649 0 | ||
| 72 | 6 00:51:16 9051 0 01:20:33 5290 0 | ||
| 73 | 5 01:20:49 12872 0 02:03:28 12064 0 | ||
| 74 | 4 01:55:28 15951 0 02:07:56 13646 0 | ||
| 75 | 3 01:37:48 19772 0 01:58:16 16711 0 | ||
| 76 | 2 00:32:58 10110 0 00:48:07 7148 0 | ||
| 77 | 1 03:23:24 19153 0 03:28:40 17929 0 | ||
| 78 | ``` | ||
diff --git a/2025/README.md b/2025/README.md index ece1c89..c72c8a5 100644 --- a/2025/README.md +++ b/2025/README.md | |||
| @@ -6,3 +6,46 @@ from standard input if no argument is provided. | |||
| 6 | Example | 6 | Example |
| 7 | 7 | ||
| 8 | `python 01/a.py 01/input.txt` | 8 | `python 01/a.py 01/input.txt` |
| 9 | |||
| 10 | ## Personal times | ||
| 11 | |||
| 12 | ``` | ||
| 13 | Day -Part 1- -Part 2- | ||
| 14 | 3 00:05:02 00:16:09 | ||
| 15 | 2 00:10:36 00:11:55 | ||
| 16 | 1 00:06:20 00:50:41 | ||
| 17 | ``` | ||
| 18 | |||
| 19 | ## Daily comments (spoilers!) | ||
| 20 | |||
| 21 | ### Day 1: Secret Entrance | ||
| 22 | |||
| 23 | Part 1 was easy. Well, I misread the statement and got it wrong twice, | ||
| 24 | but that's on me. | ||
| 25 | |||
| 26 | Then I kept getting part 2 wrong, and I have no idea what I was doing wrong. | ||
| 27 | Sure, at first I made some mistakes related to landing on zero at the | ||
| 28 | end of a movement. But for at least 6-7 times I found a mistake, fixed, | ||
| 29 | my code would solve the example case correctly but my answer on the real | ||
| 30 | input was wrong. At some point I started rewriting the code in alternative | ||
| 31 | ways hoping to get a different answer, and one of those versions worked. | ||
| 32 | Still no idea why. | ||
| 33 | |||
| 34 | So in the end it took me more than 40 minutes to solve part 2. Great start! | ||
| 35 | |||
| 36 | ### Day 1: Secret Entrance | ||
| 37 | |||
| 38 | I misread the statement for part 1 and I accidentally solved part 2 first. | ||
| 39 | I re-read the problem description, fixed my code, submitted it, and then | ||
| 40 | I just had to press `Ctrl+Z` (actually `u` on vi...) enough times to solve | ||
| 41 | part 2. | ||
| 42 | |||
| 43 | ### Day 3: Lobby | ||
| 44 | |||
| 45 | My solution for part 1 is ad-hoc and not very good. I should have thought | ||
| 46 | about it a bit longer, the general solution isn't much harder to find. | ||
| 47 | |||
| 48 | For part 2 I used recursion with memorization (using Python's | ||
| 49 | `functools.cache`), which is fast enough. But later Chiara pointed | ||
| 50 | out to me that actually the solution is quite trivially greedy; I | ||
| 51 | implemented the greedy version in `b-alt.py`. | ||
