上一页 1 2 3 4 5 6 7 ··· 27 下一页
摘要: C:#include #include #include struct node{ char data[30]; struct node *lc; struct node *rc; int num;};char a[30];int n;stru... 阅读全文
posted @ 2018-12-11 11:13 Mercury_Lc 阅读(131) 评论(0) 推荐(0)
摘要: C++:#include using namespace std;int n;struct node{ char data[55]; int num; struct node *lc, *rc;};void creat(struct node *&r... 阅读全文
posted @ 2018-12-11 11:11 Mercury_Lc 阅读(264) 评论(0) 推荐(0)
摘要: #include #include #include int a[1000005];int fin(int x,int l,int r){ int m = (l + r) / 2; if(l > r) return -1; if(a[m] == x)... 阅读全文
posted @ 2018-12-11 11:10 Mercury_Lc 阅读(340) 评论(0) 推荐(0)
摘要: Hash表的平方探测思路:如果当前这个没存放数值,就放进去,如果当前这个地方Hash [ i ] 已经有数值了,就以平方的间隔左右寻找没有存放数的空白 Hash [ i ]。 #include using namespace std;const int inf = 0... 阅读全文
posted @ 2018-12-11 11:08 Mercury_Lc 阅读(142) 评论(0) 推荐(0)
摘要: 二叉排序树(Binary Sort Tree),又称二叉查找树(Binary Search Tree),也称二叉搜索树。#include #include #include struct node{ int data; struct node *l, *r... 阅读全文
posted @ 2018-12-09 23:05 Mercury_Lc 阅读(183) 评论(0) 推荐(0)
摘要: 额,很厉害的一个表达式。要是有错误的地方,留个言,以便修改,如需转载,附带网址谢谢啦。By Mercury_Lc正则表达式有很多的功能,比较常见的使用可以解决以下几种问题:查找字符串 str 是否包含一些子串 s 或者进行模式查找 匹配符合要求的字符串,这里指可以是只... 阅读全文
posted @ 2018-12-07 20:41 Mercury_Lc 阅读(137) 评论(0) 推荐(0)
摘要: 在说之前,这里推荐写:#!/usr/bin/env python进入正题,在 Python 里面第一行代码:#!/usr/bin/python 其他有的可能是 python2 或者 python3 都是一个样子,一开始我以为是像 C++ 那样子一样的头文件,... 阅读全文
posted @ 2018-12-07 17:07 Mercury_Lc 阅读(465) 评论(0) 推荐(0)
摘要: 以下是蒻鞫第一次打开CSDN-markdown编译器的温馨提示,感觉CSDN好贴心,不作任何用途,仅为纪念,若存在违法侵权行为,请联系留言,立即删除。List item这里写欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何... 阅读全文
posted @ 2018-12-07 16:38 Mercury_Lc 阅读(391) 评论(0) 推荐(0)
摘要: ST 表是个好东西,虽然前些天 ldq 学长已经讲完啦,但是那天他讲了那么多,让智商受限的我完全没有全部接受,选择性的扔掉了一部分(其实不舍的扔,记不住QAQ)。ST 表最简单的应用就是查询区间最大值(或着最小值,这里以最大值为例),它(单纯 ST 表自己)需要你先修... 阅读全文
posted @ 2018-12-05 20:20 Mercury_Lc 阅读(360) 评论(0) 推荐(0)
摘要: The Water ProblemHDU - 5443 「 第一部分nlogn预处理 第二部分O(1)询问 」#include #include using namespace std;const int maxn = 1000004;int f[maxn][20... 阅读全文
posted @ 2018-12-05 16:53 Mercury_Lc 阅读(161) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 27 下一页