How much is |a1-b1|+|a2-b2|+...+|an-bn|?
A sneaky way of solving this: if there's an unique answer, it must be same if we take A={1,2...n} and B={n+1,n+2...2n}. In that case the sum is (2n-1)+(2n-3)+...+1, which can be seen to be n².
blackjack
flooble's webmaster puzzle