文章系列目录 Wechat development series 1 – setup your development environment Wechat development series 2 – development Q&A service using nodejs Wechat deve ...
分类:
微信 时间:
2020-09-15 20:58:20
阅读次数:
63
835 Trie字符串统计 链接:https://www.acwing.com/problem/content/837/ #include <iostream> using namespace std; const int N = 100010; int n; int son[N][26], cnt ...
分类:
编程语言 时间:
2020-09-15 20:53:33
阅读次数:
49
01背包:指的是每种物品只能选0次或1次的背包问题。 在01背包的基础上说一下闫氏dp分析法: 状态计算使用的集合划分方法: #include<iostream> using namespace std; const int N = 1010; int n, m; int f[N][N]; int ...
分类:
其他好文 时间:
2020-09-14 19:11:24
阅读次数:
37
#include<cstdio> #include<queue> #include<vector> using namespace std; const int N = 1010; queue<int> q; int w[N]; int result[N]; int main(){ int np,n ...
分类:
其他好文 时间:
2020-09-12 21:48:03
阅读次数:
38
My series of Cloud Application Studio Blogs How to detect EditMode in an Embedded Component Step by step to enable your custom BO with attachment uplo ...
分类:
其他好文 时间:
2020-09-12 21:42:43
阅读次数:
46
这段时间有点忙,好久没打CF了 A 考虑到n与n-1互质,可以把数列分成两段操作[1,1][2,n],全部加成n的倍数,再操作[1,n]即可,注意特判n=1 #include<bits/stdc++.h> using namespace std; typedef long long ll; cons ...
分类:
其他好文 时间:
2020-09-11 16:00:37
阅读次数:
48
chrono 标准库包含在头文件 中,使用时需要包含头文件,为了方便使用,可以导入命名空间 #include <chrono> using namespace std::chrono; duration 关于时间的几个变量的定义 显示说明类型 using namespace std::chrono; ...
分类:
其他好文 时间:
2020-09-11 15:47:37
阅读次数:
28
#include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N = 2000010; typedef long long LL; int n; //t[i]表示树状数组i结点覆盖的范围 ...
分类:
编程语言 时间:
2020-09-11 14:22:54
阅读次数:
34
文章系列目录 Wechat development series 1 – setup your development environment Wechat development series 2 – development Q&A service using nodejs Wechat deve ...
分类:
微信 时间:
2020-09-11 14:16:19
阅读次数:
63
按边权把边从小到大排序 用并查集加边 检查是否为连通图 #include<iostream> #include<algorithm> using namespace std; const int N = 100010, E = 200010; struct edge{ int a, b, w; bo ...
分类:
编程语言 时间:
2020-09-10 22:59:17
阅读次数:
38