summary refs log tree commit diff homepage
path: root/2021
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-12-13 11:10:35 -0500
committerJune McEnroe <june@causal.agency>2021-12-13 11:10:35 -0500
commit99818fe8661f3d031bc81afeb8235f172aff8d8f (patch)
treef9253d1d8b0f486663cd09769285701d0a6e5578 /2021
parentSolve day 13 part 1 (diff)
downloadaoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.tar.gz
aoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.zip
Solve day 13 part 2
Diffstat (limited to '2021')
-rw-r--r--2021/day13.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/2021/day13.c b/2021/day13.c
index 9635616..3e60177 100644
--- a/2021/day13.c
+++ b/2021/day13.c
@@ -47,4 +47,10 @@ int main(void) {
 			first = 0;
 		}
 	}
+	for (int y = 0; y < h; ++y) {
+		for (int x = 0; x < w; ++x) {
+			printf("%c", (paper[y][x] ? '#' : '.'));
+		}
+		printf("\n");
+	}
 }