摘要: http://poj.org/problem?id=1062poj计划里最短路题 用DFS做的。。弄了一下午 终于搜过了 注意 全局的最大跟最小值的差不能超过它所规定的限制View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<string.h> 4 using namespace std; 5 int m,mi,xf[111],flag,minn,maxx; 6 struct node 7 { 8 int p,l,x; 9 int t[101],v[101];10 }q[101];11 v 阅读全文
posted @ 2012-08-13 17:44 _雨 阅读(215) 评论(0) 推荐(0) 编辑
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1500View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<string.h> 4 #include<stdlib.h> 5 using namespace std; 6 struct node 7 { 8 int flag; 9 node *next[27];10 node()11 {12 flag = 0;13 m... 阅读全文
posted @ 2012-08-13 14:42 _雨 阅读(163) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1075难得的1A 把对应的英语单词存在 火星文字最后一个字母的结构体字符串中 挨个找View Code 1 #include <iostream> 2 #include<cstdio> 3 #include<string.h> 4 #include<stdlib.h> 5 using namespace std; 6 int flag; 7 struct node 8 { 9 int flag; 10 char s[21]; 11 node *next[27]; 阅读全文
posted @ 2012-08-13 11:27 _雨 阅读(192) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1247先找某个单词是否为一个单词的前缀 再用 这个单词减去前缀 判断剩下的部分是否为一个单词View Code 1 #include <iostream> 2 #include<stdlib.h> 3 #include<cstdio> 4 #include<string.h> 5 using namespace std; 6 char c[50001][101]; 7 struct node 8 { 9 int flag;10 node *next[27];11 阅读全文
posted @ 2012-08-13 10:26 _雨 阅读(187) 评论(0) 推荐(0) 编辑