Add solution for 2016 Day 22

This commit is contained in:
Thraix committed 2026-09-04 18:37:13 +02:00
1 parent c62c9dc3de
commit bec8be80a3
3 files changed
+129 -8

No files matched your search

+5
View File
@@ -500,6 +500,11 @@ struct Array2D
return ConstIterator{*this, Index2D{0, height}};
}
bool operator<(const Array2D<T>& other) const
{
return array2D < other.array2D;
}
friend std::ostream& operator<<(std::ostream& os, const Array2D& array2D)
{
for (int y = 0; y < array2D.height; y++)