summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--9.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/9.c b/9.c
index bd19cae..344c137 100644
--- a/9.c
+++ b/9.c
@@ -52,7 +52,6 @@ main()
tsearch(tail, &tails, point_tcmp);
tail = point_copy(tail);
++ntails;
- fprintf(stderr, "Tail visiting %d,%d\n", tail->x, tail->y);
while (fgets(buf, sizeof(buf), stdin)) {
int dist, dx, dy;
@@ -79,7 +78,6 @@ main()
fprintf(stderr, "Unexpected input: %s\n", buf);
return -1;
}
- fprintf(stderr, "Head %c %d to %d,%d\n", buf[0], dist, head.x, head.y);
dx = head.x - tail->x;
dy = head.y - tail->y;
@@ -102,21 +100,14 @@ main()
--tail->y;
++dy;
}
- fprintf(stderr, " Tail visiting %d,%d", tail->x, tail->y);
// Search/insert current tail in visited tails
pp = tsearch(tail, &tails, point_tcmp);
if (*pp == tail) {
// This was a new one, tail is now in the tree
- //fprintf(stderr, " (new)");
tail = point_copy(tail);
++ntails;
}
- else {
- fprintf(stderr, " (old)");
- }
-
- fprintf(stderr, "\n");
}
}