Bessie the cow is a huge fan of card games, which is quite surprising, given her lack of opposable thumbs. Unfortunately, none of the other cows in the herd are good opponents. They are so bad, in fact, that they always play in a completely predictable fashion!Nonetheless, it can still be a challenge for Bessie to figure out how to win. Bessie and her friend Elsie are currently playing a simple card game where they take a deck of2N2Ncards, conveniently numbered1…2N, and divide them intoNNcards for Bessie andNNcards for Elsie. The two then playNNrounds, where in each round Bessie and Elsie both play a single card, and the player with the highest card earns a point. Given that Bessie can predict the order in which Elsie will play her cards, please determine the maximum number of points Bessie can win.
Bessie the cow is a huge fan of card games, which is quite surprising, given her lack of opposable thumbs. Unfortunately, none of the other cows in the herd are good opponents. They are so bad, in fact, that they always play in a completely predictable fashion! Nonetheless, it can still be a challenge for Bessie to figure out how to win. Bessie and her friend Elsie are currently playing a simple card game where they take a deck of 2N2N cards, conveniently numbered 1…2N1…2N, and divide them into NN cards for Bessie and NN cards for Elsie. The two then play NN rounds, where in each round Bessie and Elsie both play a single card, and the player with the highest card earns a point. Given that Bessie can predict the order in which Elsie will play her cards, please determine the maximum number of points Bessie can win.
标签: HBC24044Forsaken喜欢独一无二的树 图论 生成树[USACO 2015 Dec S]High Card Wins题解