USACO 2019 US Open Contest, Bronze Problem 2 Milk Factory
The milk business is booming! Farmer John's milk processing factory consists of NN processing stations, conveniently numbered 1…N1…N (1≤N≤1001≤N≤100), and N−1N−1 walkways, each connecting some pair...