摘要: HDU 3001 travelling:http://acm.hdu.edu.cn/showproblem.php?pid=3001注意题目叙述:“But Mr Acmer gets bored so easily that he doesn't want to visit a city more than twice!”, 题目大意:加限制的最小生成树,限制条件:每个节点最多只能到达两次, 用三进制(想想二进制表示的意思,可对比理解)#include<iostream>#include<cstdio>#include<cstring>#includ 阅读全文
posted @ 2013-05-14 17:01 Jack Ge 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 转自(http://coolshell.cn/articles/4990.html)月光博客6月12日发表了《写给新手程序员的一封信》,翻译自《An open letter to those who want to start programming》,我的朋友(他在本站的id是Mailper)告诉我,他希望在酷壳上看到一篇更具操作性的文章。因为他也是喜欢编程和技术的家伙,于是,我让他把他的一些学习Python和Web编程的一些点滴总结一下。于是他给我发来了一些他的心得和经历,我在把他的心得做了不多的增改,并根据我的经历增加了“进阶”一节。这是一篇由新手和我这个老家伙根据我们的经历完成的文章。 阅读全文
posted @ 2013-05-14 14:25 Jack Ge 阅读(319) 评论(0) 推荐(1) 编辑
摘要: The Bottom of a GraphTime Limit:3000MSMemory Limit:65536KTotal Submissions:7514Accepted:3083DescriptionWe will use the following (standard) definitions from graph theory. LetVbe a nonempty and finite set, its elements being called vertices (or nodes). LetEbe a subset of the Cartesian productV×V 阅读全文
posted @ 2013-05-14 12:08 Jack Ge 阅读(405) 评论(0) 推荐(0) 编辑