|
|
back to boardI get AC with 2 paths First, very stupied method: used just 2 arrays for A and B values, 0.609s, 673KB. Second, some hint: used multi-stack and for pointers at next element used unsigned short, 0.031s, 677KB. Sorry, for bad english:-) Re: I get AC with 2 paths I used 2 arrays for A and B values and O(n) algorithm |
|
|