mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 22:30:47 +00:00
add blank line
This commit is contained in:
parent
475ccfe0ba
commit
947016d43b
@ -38,6 +38,7 @@ func parseLines(r io.Reader) ([]int, []int, error) {
|
|||||||
scanner := bufio.NewScanner(r)
|
scanner := bufio.NewScanner(r)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
nums := reNums.FindAllString(scanner.Text(), -1)
|
nums := reNums.FindAllString(scanner.Text(), -1)
|
||||||
|
|
||||||
left = util.InsertSorted(left, util.MustConv(nums[0]))
|
left = util.InsertSorted(left, util.MustConv(nums[0]))
|
||||||
right = util.InsertSorted(right, util.MustConv(nums[1]))
|
right = util.InsertSorted(right, util.MustConv(nums[1]))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user