p2882专题

POJ 3276 Face The Right Way/洛谷P2882 [USACO07MAR]面对正确的方式 反转

题目描述 Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backward, though, and he needs them all to face forward