E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
TOT
网络流算法+例题整理
DINIC(无当前弧优化):voidadd(intx,inty,intz){son[++
tot
]=y,w[
tot
]=z,nxt[
tot
]=lnk[x],lnk[x]=
tot
;}intdfs(intx,intsum
DYT_B
·
2020-08-10 13:01
知识整理
最小费用最大流(spfa增广)——模板整理
include#include#includeusingnamespacestd;constintmaxn=5005,maxe=100005;intn,m,nxt[maxe],S,T,fir[maxn],
tot
Lynstery
·
2020-08-10 13:09
网络流
我的OI学习足迹
codevs1058 合唱队形==洛谷P1091 合唱队形
K,他们的身高分别为T1,T2,…,TK,则他们的身高满足T1Ti+1>…>TK(1#includeusingnamespacestd;#defineN1010intp[N],f[N],a[N],n,
tot
weixin_34067102
·
2020-08-10 13:20
树状DP练习
题目传送门代码:#includeusingnamespacestd;constintmaxn=6000+100;structEdge{intto,next;}edge[maxn];inthead[maxn],
tot
ITKaven
·
2020-08-10 12:10
HDU
ACM
暑假第十六测
#includeusingnamespacestd;#definelllonglongconstintM=1e5+10;llst[M][2];llans,
tot
;intmain(){freopen("guass.in
weixin_30437481
·
2020-08-10 07:59
蒜头君的树
蒜头君的树题解先存图,再dfs,dfs的过程中统计以x点为子树的点的总数cnt[x],这样可以求出来x和fa[x]连的这条边一共被使用了(n-cnt[x])*cnt[x]次再求出来最短路之和
tot
(因为是树
pcccc0616
·
2020-08-10 06:11
题
最短路径算法
树
bzoj3926[Zjoi2015]诸神眷顾的幻想乡 广义后缀自动机
include#definefo(i,a,b)for(inti=a;i=b;i--)usingnamespacestd;constintN=5e5+5;typedeflonglongll;intcnt,
tot
Transcendence_magia
·
2020-08-09 23:44
bzoj
后缀自动机
c++学习(五)
定义类的各种成员属性和成员方法classStock{private:std::stringcompany;longshares;doubleshare_val;doubletotal_val;voidset_
tot
周卓敏
·
2020-08-09 16:15
c++
FZU 2214 Knapsack problem【DP】【超大容量背包】
就是设dp[i]为拿到总价值为i的物品时所需的最小的背包容量,那么dp[
tot
_v]=
tot
_w,其他初始化为INF,然后对于第i个物品,遍历所有价值j,dp[j-v[i]]=min(dp[j-v[i]
The_Dawn_Star
·
2020-08-09 15:44
DP
FZU
CF622F The Sum of the k-th Powers
include#defineinf20021225#definelllonglong#definemdn1000000007#definemxk1000010usingnamespacestd;intn,k,
tot
weixin_33735077
·
2020-08-09 14:43
cf29d 深搜,dfs序
includeusingnamespacestd;#definemaxn500structEdge{intto,nxt;}edge[maxnv;voidinit(){memset(head,-1,sizeofhead);k=
tot
weixin_30765475
·
2020-08-09 13:33
[C++]C++学习笔记(二)
includeclassStock//classdeclaration{private:std::stringcompany;longshares;doubleshare_val;doubletotal_val;voidset_
tot
知了112
·
2020-08-09 13:00
C++
编程语言
cpp 10.7
pragmaonce#includeclassStock{private:std::stringcompany;intshares;doubleshare_val;doubletotal_val;voidset_
tot
rocvfx
·
2020-08-09 11:57
牛逼c++
Oracle 常用性能监控SQL语句
--监控事例的等待SELECTEVENT,SUM(DECODE(WAIT_TIME,0,0,1))"Prev",SUM(DECODE(WAIT_TIME,0,1,0))"Curr",COUNT(*)"
Tot
"FROMV
panhongbin100
·
2020-08-09 10:36
ORCLE
bzoj 3630 [JLOI2014]镜面通道 计算几何 网络流
includeusingnamespacestd;#defineN310#defineinf1e9#defineeps1e-8#defineM1100000intn,X,Y,c1,c2,cnt,S,T,
tot
make_it_for_good
·
2020-08-09 09:01
计算几何
网络流
树链剖分+线段树 POJ3237 权值在边 模板
include#includeusingnamespacestd;constintmaxn=100010;structEdge{intto;intnext;}edge[maxn*2];inthead[maxn],
tot
殇峰
·
2020-08-09 09:12
pycdc 编译
pycdc-master>cmakeCMakeLists.txt--Buildingfor:VisualStudio152017--SelectingWindowsSDKversion10.0.17763.0
tot
lacoucou
·
2020-08-09 09:13
杂
DB2常用动态视图、监控表函数总结
查看容器信息:db2“selecttbsp_name,container_name,container_type,total_pages,usable_pages,accessible,1.0*fs_
tot
enchanterblue
·
2020-08-09 08:48
DB2
codeforces 622D Optimal Number Permutation 思维
10;intnum[maxn];intmain(){intn;cin>>n;inti;intlen=n;inttot=1;memset(num,0,sizeof(num));for(i=1;i
tot
黑码
·
2020-08-09 06:53
思维
HDU 5372 Segment Game(线段树+离散化)
右端点的和每次插入一条区间[L,R]就,先询问[0,R]的右端点个数lsum再询问[L,INF]的左端点的个数rsumtot表示:当前线段还有几条那么题目要求的是整条线段的个数就是:lsum+rsum−
tot
HelloWorld10086
·
2020-08-09 06:36
线段树
2020杭电多校第六场 A Very Easy Graph Problem 点分治 (HDU 6832)
1usingnamespacestd;typedeflonglongll;constintN=2e5+10;constllmod=1e9+7;structEdge{intnxt,to;llw;}e[N<<1];inthead[N],
tot
linbinwu123
·
2020-08-09 05:12
#
点分治
树和森林
C++ Primer Plus 10章源码
_H_#includeclassStock{private:std::stringcompany;longshares;doubleshare_val;doubletotal_val;voidset_
tot
damowangsx
·
2020-08-09 04:44
数据库字段转Java驼峰命名转换工具
先看效果,从左边转换成了右边:INT_TERMS_TYPEintTermsTypeINT_TERMS_DEATILintTermsDeatilINT_
TOT
_TERMSintTotTermsINT_TERMintTermINT_DUE_DATEintDueDateINT_DUE_AMTintDueAmt
学编程的司马光
·
2020-08-09 04:03
mysql
SqlServer
Java
曼哈顿距离最小生成树
#include#include#include#include#defineN505050usingnamespacestd;intn,K,
tot
=0,edgenum,fa[N],tree[N],treep
wxx_louisa
·
2020-08-09 02:32
牛客多校4 A Ancient Distance 线段树+dfs序
;vectorg[N],st;inttot,in[N],out[N],n,ans[N],rnk[N];intfa[N][22],dep[N];typedeflonglongll;voidinit(){
tot
xtuls
·
2020-08-09 01:10
牛客多校
BZOJ 4530 LCT/线段树合并
constintN=200050;intn,q,cnt,dfn[N],last[N],tree[N*16],lson[N*16],rson[N*16];intfirst[N],next[N],v[N],w[N],
tot
weixin_34396103
·
2020-08-09 00:57
BZOJ 1103 DFS序+线段树
include#includeusingnamespacestd;#defineN555000charch[55];intn,m,nn,sum,v[N],next[N],first[N],tree[N*4],
tot
weixin_34211761
·
2020-08-09 00:53
SDOI2015 寻宝游戏
includeusingnamespacestd;#defineintlonglong#defineN100010structedge{intnxt,to,w;}e[NS;intn,m,x,y,z;charc;intcnt,
tot
weixin_33957648
·
2020-08-09 00:12
二分图的染色与匹配
如果可以完成则为二分图,否则不为.BFS实现:#include#include#include#include#include#includeusingnamespacestd;intn,m,ru,rv,
tot
Loi_MurasameKatana
·
2020-08-08 19:21
>算法集合(_▽_)<
二分图染色
匈牙利
NOIPRP++
[HEOI2015] 小Z的房间
#include#include#include#include#definelllonglongconstintmod=1e9;constintmaxm=100;intid[maxm][maxm],
tot
HT008_123
·
2020-08-08 19:24
题目分析
高斯消元
Matrix_Tree
定理
UOJ#395. 【NOI2018】你的名字(SAM)
#includeusingnamespacestd;constintN=1e6+50;structSAM{charch[N];intlen,last,
tot
;intpos[N],fail[N],son[
DZYO
·
2020-08-08 19:15
后缀自动机
强联通分量简讲(Tarjan算法)&&HDU 1269 迷宫城堡
include#include#defineN10010#defineM100010#defineINFINT_MAXusingnamespacestd;intdfn[N],low[N],now=0,ans,
tot
Time_major
·
2020-08-08 13:10
图论
总结
模板
强连通分量
Tarjan
bzoj4530: [Bjoi2014]大融合 //线段树分治+并查集
defineV2000006usingnamespacestd;typedeflonglongll;structedge{intu,v;}e[N];mapmp;map::iteratorit;intn,q,tmp,lst[N],qnum[N],cct,cnt,
tot
Starria
·
2020-08-08 13:42
线段树分治
并查集
BZOJ 2819 DFS序+线段树
includeusingnamespacestd;constintN=1000050;intn,nn,q,xx,yy,stk[N],in[N],out[N],top,cnt,tree[N*4];intfirst[N],next[N],v[N],
tot
weixin_33766168
·
2020-08-08 11:17
bzoj 4719: [Noip2016]天天爱跑步 线段树合并
n,m#include#include#include#include#defineN300005usingnamespacestd;intn,m,cnt,
tot
,last[N],ls
SFN1036
·
2020-08-08 11:46
线段树
知识库--Handling Write Skew Anomaly 处理写偏差(123)
defsavings-balance(ref600))(defnwithdraw-account[from-balanceconstraining-balanceamount](dosync(let[
tot
平静不绝望
·
2020-08-08 11:27
并发
「Codeforces Round 576 (div2)」题解
codeforces.com/contest/1199C.MP3题解尺取法代码#includeusingnamespacestd;constintmaxn=4e5+10;intn,m,a[maxn],num[maxn],
tot
wzw1105
·
2020-08-08 02:05
思维
dp
mysql 视图不支持子查询的解决办法
CREATEORREPLACEVIEWview_systeminfo_detailASSELECTf.filesystemSize,f.used,f.unUsed,c.totalContentInfo,s.totalTask,s2.
tot
蒂鸥维毅
·
2020-08-08 01:34
mysql
mysql
view
subquery
NOIP模拟赛2019.9.21题解
经历了千辛万苦,小猫们终于爬上了山顶,但是疲倦的它们再也不想徒步走下(呜咕>usingnamespacestd;typedeflonglongll;constintN=10005;intn,a[N],w,sum,
tot
Trilarflagz
·
2020-08-08 01:50
模拟赛
NOIP2019集训9.24 day2题解
向下搜索子节点a[j],a[j]满足条件0usingnamespacestd;constintN=4000,mod=19260817;typedeflonglongll;intn,k,a[N],head[N],
tot
Trilarflagz
·
2020-08-08 01:50
NOIP2019集训
JZOJ6716. 【2020.06.07省选模拟】反讽
include#include#definemaxn1000005usingnamespacestd;intT,n,m,i,j,k,a[maxn],b[maxn],ans;inttot1,A[maxn][2],
tot
2
YiPeng_Deng
·
2020-08-08 01:54
题解
贪心
结论题
【NOIP2015模拟11.5】JZOJ8月3日提高组T3 Divide
】JZOJ8月3日提高组T3Divide题目题解题意分析Code题目题解题意给出nnn个数,求有多少对i,j,ki,j,ki,j,k满足iusingnamespacestd;intn,p,i,j,k,
tot
LZX_lzx
·
2020-08-08 01:10
信息学总结
「SDOI2015」约数个数和
ij)∑i=1n∑j=1md(ij)n,musingnamespacestd;typedeflonglongll;constintN=70000;boolis_prime[N];intprime[N],
tot
tata_d2
·
2020-08-07 18:44
组合数学
数学
数论
bzoj3261: 最大异或和(可持久化字典树)
2、Q2、Q2、Q$l$$r$$x$:询问操作,你需要找到一个位置ppp,满足l<=p<=rl<=p<=rl#defineN600010intn,m,
tot
=0,a[N],rt[
sunshiness_s
·
2020-08-07 18:47
字典树
学习笔记
RNN
但是现实中很多东西是有先后顺序的,比如时间序列,语句等,因此其输出依赖于输入与记忆,一句话解释RNN,就是重复使用一个单元结构;RNN中多少个输入就有多少层RNN是一个序列到序列的模型,设XtX_tXt:表示t时刻的输入,oto_
tot
_LvP
·
2020-08-07 17:18
深度学习
业务办理
#include#include#include#include#defineLLlonglong#defineM100009usingnamespacestd;intn;LLans,
tot
;structH
河渔船
·
2020-08-07 16:05
贪心
分析
bzoj 2671: Calc 数学
#include#include#include#includeusingnamespacestd;typedeflonglongLL;constintN=50005;inttop,prime[N],
tot
SFN1036
·
2020-08-07 16:43
数学
【BZOJ2671】Calc
includeusingnamespacestd;#definelllonglong#defineMAX111111intn,m;llans;boolzs[MAX];intpri[MAX],mu[MAX],
tot
小蒟蒻yyb
·
2020-08-07 16:47
BZOJ
洛谷-2257 YY的GCD
题目描述神犇YY虐完数论后给傻×kAc出了一题给定N,M,求1#includeconstintN=1e7+5,lnN=15;intn,m,
tot
,p[N/lnN],mu[N],f[N];boolflg[
mkopvec
·
2020-08-07 15:01
算法题
vue+element-ui中表格,分页的基本使用
status:状态码message:存放信息page:当前页数(一般而言mybatis也好,JPA也好,当传入0时为第一页,也会有后台人员进行处理,从1开始)pageSize:总页数(这个可以通过page,
tot
夹叶
·
2020-08-07 14:10
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他