P3071 [USACO13JAN] Seating G
题目描述
To earn some extra money, the cows have opened a restaurant in their barn specializing in milkshakes. The restaurant has N seats (1
输入格式
无
输出格式
无
说明/提示
There are 10 seats, and 4 events. First, a party of 6 cows arrives. Then all cows in seats 2..4 depart. Next, a party of 5 arrives, followed by a party of 2.
Party #3 is turned away. All other parties are seated.