← Home
test 1: runtime error: exit status 2
panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]:
main.getPathQ({0x40000ca080?, 0x9bb10?}, {0x40000c0090, 0x6, 0x40000c0090?}, {0x40000c0000, 0x6, 0x40000c0000?}, {0x6?, 0x9bbf0?}, ...)
	/tmp/cf-worker-1624525072/main.go:144 +0x4c0
main.solve({0x40000be000, 0x4, 0x40000a0ef0?}, 0x5, 0x3)
	/tmp/cf-worker-1624525072/main.go:199 +0x4a4
main.main()
	/tmp/cf-worker-1624525072/main.go:237 +0x2ec

input:
5 3
5 5
3 3
1 1
5 4
3 2
5 3