![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POJ
文章平均质量分 80
战魂嗜杀
这个作者很懒,什么都没留下…
展开
-
POJ 1067(广搜水题)
参考某大牛的算法,还写这么久,真悲剧 #include #include #include using namespace std; #define Afull 1 #define Bfull 2 #define Aempty 3 #define Bempty 4 #define AtoB 5 #define BtoA 6 int head,tail; char step[7][10]=原创 2012-07-05 11:06:07 · 1093 阅读 · 0 评论 -
POJ 1083
大水题一道啊。。。很简单的,只要能看懂题意. 问题是这样的:公司有400个房间,单号对双号对门,中间有一条走廊,现在要搬东西,给出要搬的次数,还有每次搬动的房间号,每次搬动需要10分钟,搬动过程中的那段走廊不能被使用,求最大搬动时长。 题解很简单,就是遍历所有的走廊,得出使用的次数,然后排序输出最大的就可以了. #include #include #include using name原创 2012-07-11 16:52:59 · 1050 阅读 · 0 评论 -
POJ 1002
第一种方法。。较为繁琐,用字典序写的,用空间来换时间 #include #include using namespace std; typedef struct trietree* Ptree; struct trietree { bool arrive; int treenum; Ptree next[10]; } node[1000000]; int size;原创 2013-05-09 14:38:48 · 889 阅读 · 0 评论