aboutsummaryrefslogtreecommitdiff
path: root/src/2016/day22/aoc.h
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2023-02-06 17:56:17 +0800
committerkaiwu <kaiwu2004@gmail.com>2023-02-06 17:56:17 +0800
commit2e1e1c720e799eb6063bb8dd9d88d6b387506b4c (patch)
treec24f349a627352923e7fac1f5b43d1236d0ec14b /src/2016/day22/aoc.h
parent99b5cc53a9b1e8860fc8ffdc0a91398513a1fc5a (diff)
downloadadvent-of-code-2e1e1c720e799eb6063bb8dd9d88d6b387506b4c.tar.gz
advent-of-code-2e1e1c720e799eb6063bb8dd9d88d6b387506b4c.zip
2017 day10
Diffstat (limited to 'src/2016/day22/aoc.h')
-rw-r--r--src/2016/day22/aoc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/2016/day22/aoc.h b/src/2016/day22/aoc.h
index ac5d83f..368d9d0 100644
--- a/src/2016/day22/aoc.h
+++ b/src/2016/day22/aoc.h
@@ -53,11 +53,12 @@ struct storage_grid {
}
}
- void print() {
+ void print(int m) {
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
auto& n = get(x, y);
- printf("(%02d/%02d)\t", n.s[1], n.s[0]);
+ // printf("(%02d/%02d)\t", n.s[1], n.s[0]);
+ printf("(%02d)\t", n.s[2]);
}
printf("\n");
}