摘要: Problem APlaying with Dice题意:两个人心中都想一个数字,然后掷骰子。骰子1-6问你有几种方案会靠近a想的数字几种一样近几种靠近b的?思路:大水题一枚直接1-6枚举。代码如下: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define MP(a, b) make_pair(a, b)12 #define PB(a) push_back(a)13 14 using name... 阅读全文
posted @ 2013-12-30 02:19 张小豪 阅读(225) 评论(0) 推荐(0) 编辑