summary refs log tree commit diff homepage
path: root/2018
diff options
context:
space:
mode:
Diffstat (limited to '2018')
-rw-r--r--2018/day17.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/2018/day17.c b/2018/day17.c
index d2fd02c..4128d2e 100644
--- a/2018/day17.c
+++ b/2018/day17.c
@@ -78,10 +78,13 @@ int main(void) {
 	draw();
 
 	uint count = 0;
+	uint settled = 0;
 	for (uint y = minY; y <= maxY; ++y) {
 		for (uint x = 0; x < 2048; ++x) {
 			if (map[y][x] != '.' && map[y][x] != '#') count++;
+			if (map[y][x] == '~') settled++;
 		}
 	}
 	printf("%u\n", count);
+	printf("%u\n", settled);
 }
066.8&id=c7c7332f501d0b542ba677a17d715274bce0478b&follow=1'>Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe