#include "common.h" #include #include namespace aoc2022 { /* ..####. 00011110 0x1E ...#... 00001000 0x08 ..###.. 00011100 0x1C ...#... 00001000 0x08 ....#.. 00000100 0x04 ....#.. 00000100 0x04 ..###.. 00011100 0x1C ..#.... 00010000 0x10 ..#.... 00010000 0x10 ..#.... 00010000 0x10 ..#.... 00010000 0x10 ..##... 00011000 0x18 ..##... 00011000 0x18 ####### 01111111 0x7F ....... 00000000 0x00 ....... 00000000 0x00 ....... 00000000 0x00 */ enum rock_type { r1, r2, r3, r4, r5, chamber, }; struct rock17 { rock_type type; std::vector rs; }; std::pair day17(line_view); } // namespace aoc2022