M - Median - POJ-3575 ——mystical_curve
Given N numbers, X1, X2, … , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) differences through this work, and now your task is to find the m
原创
2017-11-13 20:05:47 ·
240 阅读 ·
0 评论