摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=107&page=show_problem&problem=67不会打扑克的人伤不起, 实际上就是子集生成 + 各种规则模拟. 规则中几个要注意的点:A是最大的牌, 也可以是最小的牌, 也就是顺子的情况有可能是TJQKA, 也可能是A2345.这道题一开始题意也没读懂, 我以为玩家只能看透最上面的一张牌, 那样的话题目就是用贪心来解了. 1 #include 2 #include 3 #include 4 # 阅读全文
posted @ 2013-12-02 23:22 NextLife 阅读(398) 评论(0) 推荐(0)