summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-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);
 }
McEnroe 2012-02-11Customize C/C++ indentationJune McEnroe 2012-02-07Update Powerline to 'develop' branchJune McEnroe 2012-02-07Add Solarized colorschemeJune McEnroe 2012-02-07Add back set nocompatible, even though it seemed to end up set anywayJune McEnroe 2012-02-05Update jellybeansJune McEnroe 2012-02-02Update itchy.vimJune McEnroe 2012-02-02Add mapping to toggle relative/absolute numberingJune McEnroe 2012-02-02Add itchy.vimJune McEnroe 2012-02-01Revert "Add ShowMarks plugin"June McEnroe 2012-02-01Add ShowMarks pluginJune McEnroe 2012-02-01Update Vim-Tomorrow-ThemeJune McEnroe 2012-02-01Add vim-markdownJune McEnroe 2012-02-01Add tabular.vimJune McEnroe 2012-02-01Update Vim-Tomorrow-ThemeJune McEnroe 2012-01-30Disable menu bar in GVimJune McEnroe 2012-01-30Set shiftwidth to 4 for LuaJune McEnroe 2012-01-29Don't show Syntastic errors automaticallyJune McEnroe 2012-01-28Update to Quicktask 1.1June McEnroe 2012-01-22Use space-test branch of quicktaskJune McEnroe 2012-01-22Enable syntax-based foldingJune McEnroe 2012-01-22Update quicktaskJune McEnroe 2012-01-22Revert "Add AutoClose"June McEnroe 2012-01-22Revert "Disable powerline for now"June McEnroe 2012-01-22Revert "Add VCS repo directories to wildignore"June McEnroe 2012-01-22Disable powerline for nowJune McEnroe 2012-01-22Update some pluginsJune McEnroe 2012-01-22Add VCS repo directories to wildignoreJune McEnroe 2012-01-22Map ,e and ,b to CtrlP file and buffer respectivelyJune McEnroe 2012-01-22Add vim-spaceJune McEnroe 2012-01-22Add AutoCloseJune McEnroe 2012-01-22Add binding for GundoJune McEnroe 2012-01-22Add GundoJune McEnroe 2012-01-22Add Jellybeans colorschemeJune McEnroe 2012-01-22Add syntasticJune McEnroe 2012-01-21Add PowerlineJune McEnroe 2012-01-21Add quicktaskJune McEnroe 2012-01-15Moved comments out of mapsJune McEnroe 2012-01-14Disable scrollbarsJune McEnroe