摘要: 我们先看一下豆瓣的robot.txt 然后我们查看top250的网页链接和源代码 通过对比不难发现网页间只是start数字发生了变化。 我们可以知道电影内容都存在ol标签下的 div class属性为hd下的a标签下的span标签的字符串 我利用的是BeautifulSoup库和requests库。 阅读全文
posted @ 2019-11-18 15:49 贾铭梓 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 华为云的配置为了自己搭个个人博客、小型网站的话,1核1g还是1核2g的华为云真香,还99反90更香了。 牛客和华为做的活动真的可以!!!强烈推荐我刚开始记得并没设置密码,然后root密码时,我选择了重置,记得得重启,密码才生效。 阅读全文
posted @ 2019-11-04 21:16 贾铭梓 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 因为网络安全课的实验课要求,我们得下载libcap我们得做一个类似于tcpdump的一个东西。具体要求就不贴出来了。 libpcap只能在官网(www.tcpdump.org)下到,我用的os是Ubuntu14.04.5。我们得安装另外3个依赖的组件,yum install 无用 在百度了之后发现应 阅读全文
posted @ 2019-10-24 17:12 贾铭梓 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 洛谷P1002 题面就不贴了吧,第一眼看直接是暴力深搜。 结果直接T了 然后看了一下,考虑了时间复杂度太高了,还有也没有很有效的剪枝。 贴一下我的dfs #include <iostream> using namespace std; int n, m, a, b; int dir1[8] = { 阅读全文
posted @ 2019-04-08 11:19 贾铭梓 阅读(301) 评论(0) 推荐(0) 编辑
摘要: void Inorder(struct Tree *T); //中序 void Preorder(struct Tree *T); //前序 void Postorder(struct Tree *T); //后序 struct Tree * InsertTree(struct Tree * T, 阅读全文
posted @ 2019-01-09 16:01 贾铭梓 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int a[10]={1,4,6,8,7,3,2,9,5,10}; void MergeSort(int a[], int n); void MSort(int a[], int TmpA[], int L, int 阅读全文
posted @ 2018-12-30 21:05 贾铭梓 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Polycarpus has n friends in Tarasov city. Polycarpus knows phone numbers of all his friends: they are strings s1,s2,...,sn. All these strings consist 阅读全文
posted @ 2018-12-30 19:27 贾铭梓 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Potato sacks come in different weight capacities (specified in pounds). Potatoes come in different weights. If you are given some number of potatoes o 阅读全文
posted @ 2018-12-30 16:21 贾铭梓 阅读(400) 评论(0) 推荐(0) 编辑
摘要: One cold winter evening Alice and her older brother Bob was sitting at home near the fireplace and giving each other interesting problems to solve. Wh 阅读全文
posted @ 2018-12-30 16:06 贾铭梓 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 在一个平面坐标系中,我们可以选出三个不全在一条线上的点构成一个三角形。我们称一个在三角形内(不包含三角形的边上),横纵坐标皆为整数的点位这个三角形的内点。 对于一个由(0,0)、(n,m)、(p,0)作为顶点构成的三角形,请你设计程序求出他的内点数。 输入包括一行,包括三个用空格分隔的整数,分别为n 阅读全文
posted @ 2018-12-30 15:42 贾铭梓 阅读(299) 评论(0) 推荐(0) 编辑