USACO 2021 December Contest, Gold Problem 1. Paired Up
USACO 2021 December Contest, Gold Problem 1. Paired Up There are a total of NN (1≤N≤1051≤N≤105) cows on the number line. The location of the ii-th cow is given by xixi (0≤xi≤1090≤xi≤109), and the w...