- 博客(108)
- 问答 (3)
- 收藏
- 关注
原创 通过路由器的IP映射来解决,两个不同IP地址的PC机之间的从LAN口到WAN口的单向通讯问题
1.问题假设:在B机中IP地址与子网掩码都固定,网关是路由器的LAN口的IP地址,我们希望通过路由器来实现B机与A机之间的单向通讯问题,也就是说B可以ping通A且可以访问A提供的FTP站点。 2.解决方法:下面看路由器的配置:WAN口的配置:WAN口的IP地址设置为与A机同网段的IP地址,网关为A机的IP地址。 LAN口的配
2017-11-22 12:43:29
1989
1
转载 如何把书上的字弄到电脑
研究生和上班族都学学吧,如何把书上的字弄到电脑!!!!把书上的字快速弄到电脑上,我也会,哇哇。。。在工作中,我常常在想,要是能把纸上有用的文字快速输入到电脑中,不用打字录入便可以大大提高工作效率该有多好呀!随着科技的发展, 这个问题在不断的解决,例如,现在市场上的扫描仪就带有OCR软件,可以把扫描的文字转换到电脑中进行编辑。但是,对于我们平常人来说,大多数人都是即不想多花钱购买不常用的设备,又
2017-11-08 14:20:51
559
原创 关于快排与随机化快排
快排是我们比较熟悉的排序算法,时间复杂度最佳为O(nlogn),最坏为O(n2)随机化快排只是通过换轴将产生最坏情况可能性降低 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int a[1000000]; 9 int Partition(int a
2017-11-08 14:20:46
444
原创 hdu2033
http://acm.hdu.edu.cn/showproblem.php?pid=2033 1 #include 2 #includestring.h> 3 #include 4 #include 5 using namespace std; 6 7 8 9 int main()10 {11 //freopen("in.txt","r",s
2017-11-08 14:20:41
299
原创 hdu2032
http://acm.hdu.edu.cn/showproblem.php?pid=2032 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 using namespace std; 7 8 9 int main()10 {11 //freopen("in
2017-11-08 14:20:36
267
原创 hdu2031
http://acm.hdu.edu.cn/showproblem.php?pid=2031 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 using namespace std; 7 8 int main() 9 {10 //freopen("in.txt"
2017-11-08 14:20:33
396
原创 hdu2030
http://acm.hdu.edu.cn/showproblem.php?pid=2030 1 #include 2 #include 3 #includestring.h> 4 #include 5 using namespace std; 6 7 8 9 int main()10 {11 //freopen("in.txt","r
2017-11-08 14:20:28
247
原创 hdu2029
http://acm.hdu.edu.cn/showproblem.php?pid=2029 1 #include 2 #includestring.h> 3 #include 4 #include 5 #include 6 using namespace std; 7 8 9 int main()10 {11 //freopen("in
2017-11-08 14:20:25
310
原创 hdu2027
http://acm.hdu.edu.cn/showproblem.php?pid=2027 1 #include 2 #include 3 #include 4 #include 5 #includestring.h> 6 #include 7 using namespace std; 8 9 int main()10 {11 //fre
2017-11-08 14:20:22
412
原创 hdu2026(water~~)
http://acm.hdu.edu.cn/showproblem.php?pid=2026 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 8 int main() 9 {10 //freopen("in.txt"
2017-11-08 14:20:19
336
原创 PHP电影小爬虫(2)
学习了别人的爬虫后自己改的一个,算是又回顾了一下php的使用我们来利用simple_html_dom的采集数据实例,这是一个PHP的库,上手很容易。simple_html_dom 可以很好的帮助我们利用php解析html文档。通过这个php封装类可以很方便的解析html文档,对其中的html元素进行操作 (PHP5+以上版本)下载地址:https://github.com/samacs/s
2017-11-08 14:20:14
502
原创 今天来做一个PHP电影小爬虫。
今天来做一个PHP电影小爬虫。我们来利用simple_html_dom的采集数据实例,这是一个PHP的库,上手很容易。simple_html_dom 可以很好的帮助我们利用php解析html文档。通过这个php封装类可以很方便的解析html文档,对其中的html元素进行操作 (PHP5+以上版本)下载地址:https://github.com/samacs/simple_html_dom下面我们以
2017-11-08 14:20:09
924
原创 PHP Simple HTML DOM解析器
一直以来使用php解析html文档树都是一个难题。Simple HTML DOM parser 帮我们很好地解决了使用 php html 解析 问题。可以通过这个php类来解析html文档,对其中的html元素进行操作 (PHP5+以上版本)。解析器不仅仅只是帮助我们验证html文档;更能解析不符合W3C标准的html文档。它使用了类似jQuery的元素选择器,通过元素的id,class,ta
2017-11-08 14:20:07
377
原创 hdu2025查找最大元素
1 #include 2 #include 3 #include 4 #include 5 #includestring.h> 6 #include 7 using namespace std; 8 9 int main()10 {11 char str[120];12 while(~scanf("%s",str))13 {
2017-11-08 14:19:57
248
原创 hdu2024C语言合法标识符
1 #include 2 #include 3 #include 4 #include 5 #includestring.h> 6 #include 7 using namespace std; 8 9 int main()10 {11 //freopen("in.txt","r",stdin);12 int n;13 ch
2017-11-08 14:19:54
572
原创 hdu2023 求平均成绩 ~~很闲~~~
1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 #include 7 using namespace std; 8 int map[60][10]; 9 int main()10 {11 int n,m;12 while(~scanf("%d%d",&n,
2017-11-08 14:19:49
357
原创 hdu2022(water~~)海选女主角
http://acm.hdu.edu.cn/showproblem.php?pid=2022二B了,没读题直接错了两次。。。。郁闷 1 #include 2 #include 3 #include string.h> 4 #include 5 #include 6 #include 7 using namespace std; 8 int main
2017-11-08 14:19:44
274
原创 hdu2021(很闲~~)
http://acm.hdu.edu.cn/showproblem.php?pid=2021water~~~ 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 #include 7 using namespace std; 8 9 int main()10 {11
2017-11-08 14:19:41
260
原创 hdu1715
http://acm.hdu.edu.cn/showproblem.php?pid=1715模板大数: 1 #include 2 #include string.h> 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include string> 9 #
2017-11-08 14:19:38
292
原创 (转)ACM基础练习题总结
来源:http://blog.youkuaiyun.com/vsooda/article/details/72936551001 这个就不用说了吧1002 简单的大数1003 DP经典问题,最大连续子段和1004 简单题1005 找规律(循环点)1006 感觉有点BT的题,我到现在还没过1007 经典问题,最近点对问题,用
2017-11-08 14:19:33
546
原创 hdu1874 畅通工程续
http://acm.hdu.edu.cn/showproblem.php?pid=1874 1 //标准最短路模板 2 //需要注意的是两点间可能有多组 3 //需要取最短的 4 #include 5 #include 6 #include 7 #includestring.h> 8 #include 9 #include10 using namesp
2017-11-08 14:19:28
131
原创 hdu2544 最短路
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2544最短路径DIJKSTRA 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 #include 7 using namespace std; 8 const int N=110;
2017-11-08 14:19:25
122
原创 hdu1068 Girls and Boys
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1068二分图的最大独立集数=节点数(n)— 最大匹配数(m)另外需要注意的是:本题求出的最大匹配数是实际的两倍需要m/2 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using n
2017-11-08 14:19:21
159
原创 hdu1151 Air Raid
http://acm.hdu.edu.cn/showproblem.php?pid=1151增广路的变种2:DAG图的最小路径覆盖=定点数-最大匹配数 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 using namespace std; 7 const int N=510;
2017-11-08 14:19:18
198
原创 hdu1150 Machine Schedule
http://acm.hdu.edu.cn/showproblem.php?pid=1150最小点覆盖=最大匹配模板题 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=110; 8 int a[N][N
2017-11-08 14:19:15
124
原创 hdu2063 过山车
题目:http://acm.hdu.edu.cn/showproblem.php?pid=2063 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=510; 8 int match[N]; 9 int a[N][N
2017-11-08 14:19:10
204
原创 2015-05-26 随笔
前几天在新闻上看到这样一则事件,一名男孩高考失利无奈下只能在家里经营的超市中帮忙,男孩的性格可以说是较为内向,但是人却说话礼貌,干活伶俐。街坊邻居也很喜欢他,当他有一次过生日希望收到的礼物是一部iphone手机,他母亲当然答应下来,因为这是这个家中的小顶梁柱第一次要的礼物,但是男孩在一次坐车中,因为忘带了钱而把手机压在司机那里,回去取钱,然而这个司机却跑了。男孩因为这件事遭受了打击,最痛苦的事并不
2017-11-08 14:19:05
138
原创 hdu1102
http://acm.hdu.edu.cn/showproblem.php?pid=1102最小生成树(模板题)30 990 692990 0 179692 179 011 2一共3个村子,下面是第i行j列 i村子和j村子之间建路需要的距离下面是一个k代表有k条路已经修好了,1村子和2村子之间以修路 1 #include 2 #include
2017-11-08 14:19:00
171
原创 hdu1162Eddy's picture
http://acm.hdu.edu.cn/showproblem.php?pid=1162最小生成树 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=5005; 8 struct stu{ 9
2017-11-08 14:18:57
138
原创 hdu1301Jungle Roads
http://acm.hdu.edu.cn/showproblem.php?pid=1301最小生成树模板题 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=600; 8 struct stu{ 9
2017-11-08 14:18:52
145
原创 hdu1875
http://acm.hdu.edu.cn/showproblem.php?pid=18752210 1020 2031 12 21000 1000给定坐标 1 //最小生成树 2 #include 3 #include 4 #include 5 #includestring.h> 6 #include 7 usin
2017-11-08 14:18:46
222
原创 hdu1233
http://acm.hdu.edu.cn/showproblem.php?pid=1233最小生成树,kruskal算法 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 using namespace std; 7 const int N=5005; 8 struct st
2017-11-08 14:18:41
143
原创 hdu1213
http://acm.hdu.edu.cn/showproblem.php?pid=1213 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=1005; 8 int father[N]; 9 int fin
2017-11-08 14:18:39
143
原创 hdu1116
http://acm.hdu.edu.cn/showproblem.php?pid=1116 1 #include 2 #include 3 #includestring.h> 4 #include 5 #include 6 using namespace std; 7 const int N=30; 8 int father[N],vis[N]; 9 in
2017-11-08 14:18:34
287
原创 hdu2018
http://acm.hdu.edu.cn/showproblem.php?pid=2018 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 8 int main() 9 {10 int f[60];11
2017-11-08 14:18:31
268
原创 hdu2015
http://acm.hdu.edu.cn/showproblem.php?pid=2015 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 8 int main() 9 {10 //freopen("in.txt"
2017-11-08 14:18:28
296
原创 hdu2013
http://acm.hdu.edu.cn/showproblem.php?pid=2013 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 int n; 9 while(cin>>n)10 {11 in
2017-11-08 14:18:23
461
原创 hdu2012
http://acm.hdu.edu.cn/showproblem.php?pid=2012数组大小算错了。。。。。郁闷-_- 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 const int N=2600; 8 int pri
2017-11-08 14:18:20
148
原创 hdu2011
http://acm.hdu.edu.cn/showproblem.php?pid=2011 1 #include 2 #include 3 #include 4 #includestring.h> 5 #include 6 using namespace std; 7 8 int main() 9 {10 int m;11 cin
2017-11-08 14:18:17
231
原创 hdu2010
//很闲,刷水。。。。。http://acm.hdu.edu.cn/showproblem.php?pid=2010 1 #include 2 #include 3 #include 4 #include 5 #includestring.h> 6 using namespace std; 7 8 int main() 9 {10 int
2017-11-08 14:18:14
338
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人