summary refs log tree commit diff homepage
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
parentSolve day 13 part 1 (diff)
downloadaoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.tar.gz
aoc-99818fe8661f3d031bc81afeb8235f172aff8d8f.zip
Solve day 13 part 2
-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");
+	}
 }
an title='2018-11-13 15:57:57 -0500'>2018-11-13Add gzgetc.3June McEnroe 2018-11-13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe