USACO 2022 February Contest, Gold Problem 1. Redistributing Gifts
USACO 2022 February Contest, Gold Problem 1. Redistributing Gifts Farmer John has?NN?gifts labeled?1…N1…N?for his?NN?cows, also labeled?1…N1…N?(1≤N≤181≤N≤18). Each cow has a wishlist, which is a pe...