p2888专题

洛谷 P2888 [USACO07NOV]牛栏Cow Hurdles

题目描述 Farmer John wants the cows to prepare for the county jumping competition, so Bessie and the gang are practicing jumping over hurdles. They are getting tired, though, so they want to be able to u