|
|
back to boardPlease add this test 4 3 1 3 1 3 2 1 2 4 1 Your test is incorrect! It's said that 1 ≤ Ai < Bi ≤ N in statement. Oh, exactly. I waste a lot of time until found a mistake in function which denote a correct order. And this program even not need in it :) |
|
|