Skip to content

Commit 55327f2

Browse files
committed
day6
1 parent c09cd88 commit 55327f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/Day06Part2.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class Day06Part2 : LinesPuzzle() {
2020
// cnt++
2121
// }
2222
// }
23-
val p1 =(( - time + Math.sqrt(1.0*time*time-4*distance) )/ -2).toLong()
24-
val p2 =( (- time - Math.sqrt(1.0*time*time-4*distance) )/ -2).toLong()
23+
val p1 =(( - time + Math.sqrt(1.0*time*time-4*distance) )/ -2).toLong()
24+
val p2 =( (- time - Math.sqrt(1.0*time*time-4*distance) )/ -2).toLong()
2525
val cnt = Math.abs(p1-p2)
2626
factor*=cnt
2727
}

0 commit comments

Comments
 (0)