上一页 1 ··· 3 4 5 6 7
摘要: HDOJ 5349 MZL’s simple problem 【set】题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5349set常用场景:operator选择功能实现#include#include#include#include#includeu... 阅读全文
posted @ 2015-08-04 19:25 快扶哀家去刷题 阅读(147) 评论(0) 推荐(0) 编辑
摘要: HDOJ 5344 MZL’s xor 【math】题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5344先按照规则生成数组 之后是ai 与 aj 相加的结果依次异或 建立求和矩阵 相同的数异或结果为0 最后只保留对角线上的数 即数组中... 阅读全文
posted @ 2015-08-04 17:06 快扶哀家去刷题 阅读(96) 评论(0) 推荐(0) 编辑
摘要: HDOJ 5327 Olympiad 【数字分解】题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5327水题#include#include#include#includeusing namespace std;int T;int a, b;int b... 阅读全文
posted @ 2015-08-03 21:56 快扶哀家去刷题 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=26121、Y与M在KFC约定见面,在此之前不能见面,所以对于Y和M个人来说,M和Y所在的位置是不能走的 2、有一些KFC不能到达,步数为0,这个时候步数非常小但是不是正确答案,最后排除一下 3、步... 阅读全文
posted @ 2015-08-03 16:37 快扶哀家去刷题 阅读(137) 评论(0) 推荐(0) 编辑
摘要: HDOJ 1241 Oil Deposits【最大连通块 dfs】题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=1241输入那里很烦。。。 1 #include 2 #include 3 #include 4 #include 5 using name... 阅读全文
posted @ 2015-08-02 19:58 快扶哀家去刷题 阅读(245) 评论(0) 推荐(0) 编辑
摘要: POJ 3984 迷宫问题【迷宫最短路径 bfs】题目链接 http://poj.org/problem?id=3984#include#include#includeusing namespace std;const int MAXL = 10; // 矩阵最大宽度char maze[MAXL][... 阅读全文
posted @ 2015-08-02 15:28 快扶哀家去刷题 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7