问题 F: Flipping Coins
时间限制: 1 Sec 内存限制: 128 MB Special Judge
提交: 129 解决: 58
[提交] [状态] [讨论版] [命题人:admin]
题目描述
Here’s a jolly and simple game: line up a row of N identical coins, all with the heads facing down onto the table and the tails upwards, and for exactly K times take one of the coins, toss it into the air, and replace it as it lands either heads-up or heads-down. You may keep all of the coins that are face-up by the end.
Being, as we established last year, a ruthless capitalist, you have resolved to play optimally to win as many coins as you can. Across all possible c