1125512961
数据结构默写计划
数据结构默写计划Ⅱ
- 已迁移至云剪贴板
TODO
- Tarjan / 缩点(☑)
- 二维数点 / 二维偏序(☑)
- 网络流(☑)
- DDP(☑)
- 历史版本和线段树(☑)
- AC自动机(☑)
- 线段树优化建图(☑)
- FHQ-Treap(☑)
- 模拟费用流(☑)
- 线段树优化建图(☑)
- 字符串(Manacher、后缀数组…)(☑)
- 斜率优化DP(☑)
- 莫比乌斯反演(☑)
- 矩阵树定理(☑)
- 圆方树(☑)
- BEST 定理(☑)
- 容斥原理(☑)
- 李超线段树(☑)
- K-D tree
- FWT
- 斯特林数
- 凸包
- DP套DP
- 整体DP
- 二项式反演
- prufer序列
- 决策单调性DP
练习现状
菜鸡的cf账号
好康的(
成就榜
2022.2.7 红名祭
2022.5.14 小月赛第一名
快读模板
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
typedef long long ll;
inline int read()
{
int now=0,nev=1; char c=getchar();
while(c<'0' || c>'9') { if(c=='-') nev=-1; c=getchar();}
while(c>='0' && c<='9') { now=(now<<1)+(now<<3)+(c&15); c=getchar(); }
return now*nev;
}自用代码
template.cpp(配合vscode的CPH插件食用)
#include <bits/stdc++.h>
#ifndef ONLINE_JUDGE
#include "lib.h"
#endif
#define rep(i, min, max) for(int i = (min); i <= (max); ++i)
#define nrep(i, max, min) for(int i = (max); i >= (min); --i)
using namespace std;
typedef long long ll;
inline int read()
{
int now=0; bool nev=false; char c=getchar();
while(c<'0' || c>'9') { if(c=='-') nev=true; c=getchar();}
while(c>='0' && c<='9') { now=(now<<1)+(now<<3)+(c&15); c=getchar(); }
return nev?-now:now;
}
const int N = 0;
int main(){
}lib.h(一些快捷的输出)
#include <iostream>
#include <string>
#define FPATH "C:\\Users\\86135\\Downloads\\"
template<typename T, typename... Ts>
auto print(T value, Ts... args) {
std::cout << value << " ";
(void) std::initializer_list<T>{([&args] {
std::cout << args << " ";
}(), value)...};
std::cout << std::endl;
}
template<typename T>
void plist(T list){
for(auto value : list)
std::cout << value << " ";
std::cout << std::endl;
}
template<typename T>
void pstack(T st){
while(!st.empty()){
std::cout << st.top() << " ";
st.pop();
}
std::cout << std::endl;
}
template<typename T>
void parray(T arr, int size, int start = 1){
for(int i = 0; i < size; ++i)
std::cout << arr[i + start] << " ";
std::cout << std::endl;
}
template<typename T>
void parray2d(T arr2d, int sizex, int sizey, int startx = 1, int starty = 1){
for(int i = 0; i < sizex; ++i)
parray(arr2d[i + startx], sizey, starty);
std::cout << std::endl;
}
template<typename T>
void put(T val){
std::cout << val;
}
void end(){
std::cout << std::endl;
}
typedef std::string Str;
void fileopen(const char *filename, const char *path = "", const char *filepath = FPATH){
Str s1 = Str(filepath) + Str(path) + Str("\\") + Str(filename) + Str(".in");
Str s2 = Str(filepath) + Str(path) + Str("\\") +Str(filename) + Str(".ans");
freopen(s1.c_str(), "r", stdin);
freopen(s2.c_str(), "w", stdout);
}

