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

goroutine 1 [running]:
main.getPathQ({0x4000138080?, 0x9bb10?}, {0x400012c090, 0x6, 0x400012c090?}, {0x400012c000, 0x6, 0x400012c000?}, {0x6?, 0x9bbf0?}, ...)
	/tmp/cf-worker-767017867/main.go:144 +0x4c0
main.solve({0x400012a000, 0x5, 0x4000108ef0?}, 0x5, 0x4)
	/tmp/cf-worker-767017867/main.go:199 +0x4a4
main.main()
	/tmp/cf-worker-767017867/main.go:237 +0x2ec

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