"[Luogu4173]" "题解" $1.$定义匹配函数 $2.$定义完全匹配函数 $3.$快速计算每一位的完全匹配函数值 cpp include include include include include define debug(...) fprintf(stderr,__VA_ARGS_ ...
分类:
其他好文 时间:
2019-03-10 12:24:11
阅读次数:
186
SpringBoot利用Swagger2只需配置少量的注解信息便能方便地构建强大的API文档。 1、添加maven依赖 2、创建Swagger2配置类 3、在API添加文档内容 4、访问http://localhost:8080/swagger-ui.html ...
分类:
编程语言 时间:
2019-03-09 12:52:04
阅读次数:
158
Swagger2简介 简单的来说,Swagger2的诞生就是为了解决前后端开发人员进行交流的时候 API文档难以维护 的痛点,它可以和我们的Java程序完美的结合在一起,并且可以与我们的另一开发利器Spring Boot来配合使用。 开始使用 第一步:导入POM文件 第二步:添加配置类 我们需要新增 ...
分类:
编程语言 时间:
2019-03-08 09:16:31
阅读次数:
192
题目描述 在未排序的数组中找到第 k 个最大的元素。请注意,你需要找的是数组排序后的第 k 个最大的元素,而不是第 k 个不同的元素。 解法1 时间复杂度:O(nlogn) 思路:使用快速排序,将数组排序,然后找到第k个最大的元素。这里需要复习一下快速一下快速排序的实现方法。 int partiti ...
分类:
其他好文 时间:
2019-03-06 10:39:06
阅读次数:
137
```cpp include include using namespace std; const int maxn=1e5+5; int a[maxn], n; void adjust(int s, int t) { int dad=s; int son=dad 2; while(sona[son ...
分类:
编程语言 时间:
2019-03-04 12:45:39
阅读次数:
190
操作 效果 vector<T> c 产生空的vector vector<T> c1(c2) 产生同类型的c1,并将复制c2的所有元素 vector<T> c(n) 利用类型T的默认构造函数和拷贝构造函数生成一个大小为n的vector vector<T> c(n,e) 产生一个大小为n的vector, ...
分类:
编程语言 时间:
2019-03-02 21:15:36
阅读次数:
257
转自: https://blog.csdn.net/tototuzuoquan/article/details/80671128 转: https://blog.csdn.net/dehu_zhou/article/details/52808752 https://blog.csdn.net/dxl ...
分类:
其他好文 时间:
2019-02-27 16:22:01
阅读次数:
181
1067 Sort with Swap(0, i) (25 分) Given any permutation of the numbers {0, 1, 2,..., N?1}, it is easy to sort them in increasing order. But what if Swa ...
分类:
其他好文 时间:
2019-02-26 11:43:16
阅读次数:
185
注解的产生背景以前,xml以低耦合的方式得到了广大开发者的青睐,xml在当时基本上能完成框架中的所有配置。但是随着项目越来越庞大,xml的配置也越来越复杂,维护性也随之降低,维护成本增高。于是就产生了一种标记式的高耦合的配置方式——注解。 注解的本质注解(Annotation)相当于一种标记,在程序 ...
分类:
编程语言 时间:
2019-02-25 20:14:24
阅读次数:
229