USACO 2018 December Contest Gold Problem2 COWPATIBILITY
It turns out there is one factor that matters far more than any other when determining whether two cows are compatible as potential friends: whether they like similar flavors of ice cream! Farmer J...