Commit Graph

13 Commits

Author SHA1 Message Date
Alexander Andreev 3fad087730
Well... forgot to change a type of a returning num variable in day 5 and 6. xD 2023-12-07 01:05:18 +04:00
Alexander Andreev 0760a2d627
In part 1of day 5 and 6 parse_number will return now uint64_t. 2023-12-07 01:02:32 +04:00
Alexander Andreev 4dbf46697c
Made parse_number inlined and made an arg const char *. Not sure if inlining will work, but I'm lazy to check. :P 2023-12-07 00:44:19 +04:00
Alexander Andreev 83944d8d4c
A little refactoring for day 5. 2023-12-07 00:24:03 +04:00
Alexander Andreev 69b8c48ef3
Also remove {} from a for in d5p1. 2023-12-06 05:27:21 +04:00
Alexander Andreev c1f11c1ebc
Do not subtract 1 each time, just use < instead of <= in d5p1. 2023-12-06 05:26:19 +04:00
Alexander Andreev fbdc38a171
In d5p1 also replaced int64_t with uint64_t. 2023-12-06 04:19:03 +04:00
Alexander Andreev 7a19ad713f
A cleanup for d5p1. Also removed an ABS macro since it doesn't needed. 2023-12-06 04:17:21 +04:00
Alexander Andreev f092158510
A little cleanup in d5p2. 2023-12-06 04:11:43 +04:00
Alexander Andreev 4a80bd2b08
From day5p2 an unused macro ABS was removed. 2023-12-06 03:52:34 +04:00
Alexander Andreev b096a62100
Join omp pragmas
in d5p2.
2023-12-06 03:45:36 +04:00
Alexander Andreev 5afa103769
Day 5 part 2 complete! Heh, it takes around 91.217s +- 6s to run. :) So a test for day5 with my data is commented out. :) 2023-12-06 03:15:44 +04:00
Alexander Andreev 7d0f6e6e64
Day 5 part 1 complete. 2023-12-05 18:49:47 +04:00