上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: 待续=-= 阅读全文
posted @ 2016-12-10 17:10 弃用博客 阅读(403) 评论(0) 推荐(0) 编辑
摘要: //Type.java 学习类型系统:基本,引用class Type { //主方法【函数】 public static void main(String[] args) { //Java变量命名和C有区别的一点就是首字母可以为美元符号 byte b,b1... 阅读全文
posted @ 2016-12-09 20:31 弃用博客 阅读(122) 评论(0) 推荐(0) 编辑
摘要: index.html: 页面(HTML5) time is long, life is short ... 阅读全文
posted @ 2016-12-03 02:38 弃用博客 阅读(253) 评论(0) 推荐(0) 编辑
摘要: index.html: 页面 time is long,life is short ... 阅读全文
posted @ 2016-12-03 02:19 弃用博客 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 链式实现: #include#include using namespace std;#define MAXVEX 100 /* 最大顶点数,应由用户定义 */typedef char VertexType; /* 顶点类型应由用户定义 */typedef int EdgeType; /* 边... 阅读全文
posted @ 2016-11-22 22:05 弃用博客 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1242 一般的bfs只能求出的最解,优解通常是步数最少的,但在此题中不一定是时间最少的解,如下图,步数依次是8,8,8,12,时间是13,13,14,12,反而第四种是要求解,一看此题就是用bfs求解... 阅读全文
posted @ 2016-11-14 20:52 弃用博客 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1562 大意:输入mp二维矩阵,规定‘@’连体的包括对角线为一片油田,统计共有多少油田。深搜方向数组dir设置8个方向遇到@继续搜索把当前位置赋值*避免重复遍历即可 #include #include #include using names... 阅读全文
posted @ 2016-11-11 01:33 弃用博客 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Light, more light #include #include using namespace std;int main(){ double c; double n; int n1; while(cin>>c&&c){ n=sqrt(c); n1=n... 阅读全文
posted @ 2016-11-09 23:02 弃用博客 阅读(148) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2024 是的,这题很简单,但是1A也不是那么容易,为什么把这么简单的题记录在博客呢,因为提醒自己要严谨,注意细节。 分析: 这题就是合法的命名规则。规定开头不能用数字,可以用大小写字母和下划线,下划线相当于字... 阅读全文
posted @ 2016-10-24 21:41 弃用博客 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=2406 这道题在很久之前就做过,由于那时候还没有仔细研究KMP以及对next数组的理解,所以当时也是留下了这个问题,最近《数据结构》上到串,老师提到这个算法,但是没有讲,下来后,我觉得是时候看下这个算法了。 题目大概意思就是求给出的... 阅读全文
posted @ 2016-10-22 16:35 弃用博客 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页