此题用滚动数组即可 #include <cstdio> #include <cstring> using namespace std; typedef unsigned long long ull; ull f[50][50]; int a[12] = {0, -1, -2, -2, -1, 1, ...
分类:
其他好文 时间:
2020-07-05 17:09:18
阅读次数:
61
不多bb 直接代码 #include<iostream> #include<cstdio> using namespace std; const long long k=5e5+5; long long a[k]; struct Segment{ long long l,r; long long s ...
分类:
其他好文 时间:
2020-07-05 17:00:43
阅读次数:
58
#include<iostream> #define INF 200000 using namespace std; int max(int a,int b){return a>b?a:b;} int min(int a,int b){return a<b?a:b;} int map[1002][1 ...
分类:
其他好文 时间:
2020-07-05 15:43:32
阅读次数:
47
题:http://hihocoder.com/problemset/problem/1445 分析:后缀自动机模板 #include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace st ...
分类:
其他好文 时间:
2020-07-05 15:17:04
阅读次数:
69
二分图的概念 奇数环:由奇数条边形成的一个环 将所有点分成两个集合,使得所有边只出现在集合之间,就是二分图 一定不含有奇数环,可能包含长度为偶数的环, 不一定是连通图 二分图:当且仅当图中不含有奇数环,两个集合内部的内部没有边 染色法 时间复杂度是O(n+m) 代码思路: 染色可以使用1和2区分不同 ...
Using Oracle Scheduler to Automate Tasks ObjectivesAfter completing this lesson, you should be able to:? Simplify management tasks by using Oracle Sch ...
分类:
数据库 时间:
2020-07-05 13:13:40
阅读次数:
62
(一)一维最大连续子数组和 源码: #include<iostream> #include<cstdio> using namespace std; const int N=100000; int main() { int i,j,k; int a[N]; int sum[N]; int n; pr ...
分类:
编程语言 时间:
2020-07-05 10:48:12
阅读次数:
68
package LeetCode_706 /** * 706. Design HashMap * https://leetcode.com/problems/design-hashmap/description/ * * Design a HashMap without using any buil ...
分类:
其他好文 时间:
2020-07-05 01:05:33
阅读次数:
77
思维题,题目限制了在一个长度为k的滑动窗口内必须要有l个数 因此所有%k相等的位置的状态是固定的,否则两个k中的个数就不相等 因此只需要把%k个相加,之后在k个中选最大的l个就行 #include<bits/stdc++.h> using namespace std; const int N = 1 ...
分类:
其他好文 时间:
2020-07-05 00:41:13
阅读次数:
66
一、迭代器,insert 添加元素。 #include <map> #include <string> #include <iostream> #include <vector> #include <set> using namespace std; int main() { /********** ...
分类:
编程语言 时间:
2020-07-04 22:19:26
阅读次数:
73