给定两个长度分别为 nnn、mmm,求∑i=1n∑j=1m∣Ai−Bj∣×(i−j)\sum_{i=1}^n\sum_{j=1}^m|A_i-B_j|\times(i-j)∑i=1n∑j=1m∣Ai−Bj∣×(i−j)。