mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-15 15:10:49 +00:00
split runners a little more
This commit is contained in:
parent
3a3af64df9
commit
171e50ebe4
@ -36,6 +36,12 @@ func two(lines []string) int {
|
|||||||
if n > res {
|
if n > res {
|
||||||
res = n
|
res = n
|
||||||
}
|
}
|
||||||
|
}(i)
|
||||||
|
|
||||||
|
wg.Add(1)
|
||||||
|
go func(x int) {
|
||||||
|
defer wg.Done()
|
||||||
|
|
||||||
n = spawn(x, len(lines[0])-1, N, lines)
|
n = spawn(x, len(lines[0])-1, N, lines)
|
||||||
if n > res {
|
if n > res {
|
||||||
res = n
|
res = n
|
||||||
@ -52,6 +58,12 @@ func two(lines []string) int {
|
|||||||
if n > res {
|
if n > res {
|
||||||
res = n
|
res = n
|
||||||
}
|
}
|
||||||
|
}(i)
|
||||||
|
|
||||||
|
wg.Add(1)
|
||||||
|
go func(y int) {
|
||||||
|
defer wg.Done()
|
||||||
|
|
||||||
n = spawn(len(lines[0])-1, y, W, lines)
|
n = spawn(len(lines[0])-1, y, W, lines)
|
||||||
if n > res {
|
if n > res {
|
||||||
res = n
|
res = n
|
||||||
|
Loading…
Reference in New Issue
Block a user