From 544eb9a9f0e721b6430146696e9d994aeaf0213f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 21 Dec 2018 15:00:42 -0500 Subject: "Solve" day 17 part 2 --- 2018/day17.c | 3 +++ 1 file changed, 3 insertions(+) (limited to '2018') 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); } -- cgit 1.4.1 4a292d4ee7e0254c026ceb5253699'>this commit dontfiles
summary refs log tree commit diff
path: root/bin/1sh/main.h (unfollow)
Commit message (Collapse)Author
2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe
Broke out LDLIBS for each bin, and made everything more uniform.
2020-01-28Change scout sensitivity to 1.4June McEnroe
idk it seems to work.
2020-01-28Import shows.txtJune McEnroe