From 72cfa6bb6ce32ad1fd5606f89c44b0240ce95947 Mon Sep 17 00:00:00 2001 From: xenia Date: Wed, 6 Dec 2023 02:25:08 -0500 Subject: [PATCH] thanks tali 2 --- 6.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6.rkt b/6.rkt index 65929a7..c0a5c85 100644 --- a/6.rkt +++ b/6.rkt @@ -7,7 +7,7 @@ (define (do-race time dist) (match-define (list lower upper) (quadratic-solutions 1 (- time) dist)) - (inexact->exact (- (ceiling upper) (add1 (floor lower))))) + (inexact->exact (- (ceiling upper) (floor lower) 1))) (define (part1 input) (for/product ([time (in-list (first input))]