Grass Planting USACO Silver Jan. 2019 #1

It’s the time of year for Farmer John to plant grass in all of his fields. The entire farm consists of N fields (1≤N≤10^5), conveniently numbered 1…N and conveniently connected by N−1N−1 bidirectional… Read more “Grass Planting USACO Silver Jan. 2019 #1”