mirror of
https://github.com/Luzifer/aoc2019.git
synced 2024-12-22 05:51:16 +00:00
Remove debug code
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
21d19eb3f1
commit
46cb255359
1 changed files with 0 additions and 3 deletions
3
day14.go
3
day14.go
|
@ -3,7 +3,6 @@ package aoc2019
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -137,8 +136,6 @@ func solveDay14Part2(inFile string) (int64, error) {
|
||||||
oreUsed = factory.calculateOreForFuel(test)
|
oreUsed = factory.calculateOreForFuel(test)
|
||||||
)
|
)
|
||||||
|
|
||||||
log.Printf("limit=%d used=%d min=%d max=%d test=%d", limit, oreUsed, minBound, maxBound, test)
|
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case minBound+1 == maxBound && oreUsed < limit:
|
case minBound+1 == maxBound && oreUsed < limit:
|
||||||
return test, nil
|
return test, nil
|
||||||
|
|
Loading…
Reference in a new issue