thanks tali 2

This commit is contained in:
xenia 2023-12-06 02:25:08 -05:00
parent 0dc8f77ac8
commit 72cfa6bb6c
1 changed files with 1 additions and 1 deletions

2
6.rkt
View File

@ -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))]