test 1: runtime error: exit status 2
panic: runtime error: index out of range [1] with length 0
goroutine 1 [running]:
main.getPathQ({0x400001e180?, 0x86201?}, {0x400007a090, 0x6, 0x400007a090?}, {0x400007a000, 0x6, 0x400007a000?}, {0x6?, 0xad780?}, ...)
/tmp/build-1759716451/solution.go:144 +0x568
main.solve({0x400001c080, 0x4, 0x400006eef8?}, 0x5, 0x3)
/tmp/build-1759716451/solution.go:199 +0x4fc
main.main()
/tmp/build-1759716451/solution.go:237 +0x284
input:
5 3
5 5
3 3
1 1
5 4
3 2
5 3
exit status 1