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
强联通分量简讲(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
秒表
time.time()7lastTime=startTime8lapNum=19try:10whileTrue:11input()12lapTime=round(time.time()-lastTime,2)13
tot
v113
·
2020-08-06 21:00
UVA - 11093 Just Finish it up(环形跑道)(模拟)
include#include#include#include#include#include#include#include#include#include#defineMin(a,b)((a=b[id]){
tot
Cherrychan2014
·
2020-08-05 21:41
抢红包算法
intnum;//分成10份 floatmin=0.01;//最小金额 inti;//循环获取红包的变量 floatt;//平均值 floatsafe_
tot
K..K
·
2020-08-05 21:56
HDU 2544 最短路 SPFA
definepfprintfusingnamespacestd;constintmaxn=105,maxm=10000+50;structEdge{intv,c,pre;}Es[maxm*2];inthead[maxn],
tot
SolarDomo
·
2020-08-05 18:53
-----------
算法
----------
图论
图论
--------
最短路
【题解】[牛客OI周赛4-提高组]A.K小生成树 枚举+前缀和+剪枝
#includeusingnamespacestd;constintN=1e6+10,Q=1e4+10,INF=0x3f3f3f3f;intn,m,a[N],fa[21],l,r,f1,f2,ans,
tot
不进清北不改名
·
2020-08-05 16:20
比赛
牛客网
枚举
剪枝
前缀和
【题解】牛客OI周赛1-提高组 A.分组 dfs
#include#includeconstintN=1e5+10,M=2e5+10;intn,m,
tot
,vis[N],hd[N];structE
不进清北不改名
·
2020-08-05 15:57
比赛
牛客网
dfs
博客园代码高亮
博客园代码高亮voidsearchPath(int*prev,intv,intu){intque[maxnum];inttot=1;que[
tot
]=u;
tot
++;inttmp=prev[u];while
weixin_30824599
·
2020-08-04 19:40
鱼塘钓鱼(fishing)
:149通过数:81三种做法:纯贪心做法堆维护DP【题目描述】有N个鱼塘排成一排(Nusingnamespacestd;intmain(){intn,fish[101],dc[101],t[101],
tot
pxlsdz
·
2020-08-04 18:17
算法基础--贪心算法
二分图匹配模板
include#include#includeusingnamespacestd;constintmaxn=1010;intn,m,vis[maxn],l[maxn],a[maxn][maxn],x,y,k,
tot
renxinyu2002
·
2020-08-04 17:42
图论专题
noip冲刺复习
网络流24题题解(待更)
飞行员配对方案问题题意给你n个主飞行员,m个副飞行员,他们之间可以相互匹配,问最多可以匹配几对一句话:主飞行员连源点,副飞行员连汇点,然后连边后跑最大流#includeusingnamespacestd;intm,n,
tot
shatianming
·
2020-08-04 17:19
网络流
hdu 2222 -AC自动机入门
include#include#include#include#includeusingnamespacestd;typedeflonglongll;constintmx=5e5+10;intn,m,root,
tot
a1214034447
·
2020-08-04 12:22
字符串
HDU4288
typedeflonglongll;constintmaxn=100010;constintmod=5;intsum[maxn>1;if(pos>1;build(l,m,rt0){sort(key,key+
tot
MakingMaker
·
2020-08-04 12:28
jzoj P1751 Span___枚举+最小生成树
数据组数
Tot
=rthenexit;i:=l;j:=r;mid:=w[(l+r)div2];repeatwhile(w[
disPlayLzy_
·
2020-08-04 12:03
动态区间第k小主席树模板
constintmaxn=60010;constintmaxm=maxn*40;intn,q,m,
tot
;inta[maxn],b[maxn];intT[maxn],lson[maxm],rson[maxm
maze_illusion
·
2020-08-04 12:27
数据结构模板
树上第k大/小(主席树)
1e5+10;intT[maxn],L[maxn*44],R[maxn*44],sum[maxn*44];inta[maxn],b[maxn],f[maxn][22],dep[maxn],e,len,
tot
CC_1012
·
2020-08-04 10:56
Daily
algorithm
hdu某道题
i个数小的数的个数ans[i]=ed[i]-st[i];#include#include#include#includeusingnamespacestd;#defineMAXN100010intl,
tot
zz_ylolita
·
2020-08-04 10:29
图论
树状数组
hdu
c++
dfs
树状数组
c++
数据库表空间/索引空间操作
1、数据库表空间占用情况查询:SELECTUpper(F.TABLESPACE_NAME)"表空间名",D.
TOT
_GROOTTE_MB"表空间大小(M)",D.
TOT
_GROOTTE_MB-F.TOTAL_BYTES
施凯
·
2020-08-04 01:09
E 因数串 EOJ Monthly 2020.7
acm.ecnu.edu.cn/contest/292/problem/E/Busingnamespacestd;typedeflonglongll;constintmaxl=3e5+10;intn,m,cas,cnt,
tot
二分抄代码
·
2020-08-03 19:33
思维
规律
落谷 P3385 【模板】负环
include#include#include#include#include#defineN200010usingnamespacestd;boolvis[N],vist;intn,m,t,x,y,z,
tot
Preeee
·
2020-08-03 18:40
ACM最短路SPFA
Codeforces 1139D(推式子+dp)
题目传送推公式博客传送推完式子就是去朴素地求就行了Orzconstintmaxn=1e5+5;constintmod=1e9+7;intm,mu[maxn],vis[maxn],primes[maxn],
tot
dengliaotu5386
·
2020-08-03 16:29
2019南昌网络赛 Yukino With Subinterval —— 树套树 或 cbq分治
╯^╰)╮最快写法:#include#definerintregisterint#definedeb(x)cerr;constintmaxn=2e5+5;intn,m,a[maxn],b[maxn],
tot
Scar_Halo
·
2020-08-03 13:31
——数据结构——
ACM
-
树套树
解题:USACO14MAR Sabotage
推式子在减去二分出的$mid$之后,设切掉$[l,r]$,数列的总和为$
tot
$$sum[1,l-1]+sum[r+1,n]+sum[l,r]=
tot
-mid*n$$sum[1,l-1]+sum
weixin_30883311
·
2020-08-03 06:49
C++使用ocilib访问oracle的函数
文件信息和seriesinfo_table_type分析项列表信息一个fileinfo_type文件信息有NUM列号,DEVICENAME品名,LOTID,BATCHNUM批次,ENDDATE测试日期,
TOT
szy好样的
·
2020-08-03 05:36
oracle
【DFS+思维】 GYM101620J Justified Jungle
inthead[1000005],to[2000005],nxt[2000005],Size[1000005],num[1000005];inttot,n;voidaddedge(intu,intv){to[++
tot
Cherry_0525
·
2020-08-03 03:45
思维题
dfs
codeforces842D
constintmaxn=1e6+100;intn,q,x,m;boolvis[maxn];intcnt[maxn];inttot;intnt[maxn][10];intnewnode(){memset(nt[
tot
Wake-
·
2020-08-03 03:11
字典树
BJ模拟:Mr. Panda and Fantastic Beats(广义SAM)
includeusingnamespacestd;constintN=5e5+50,L=26;intson[N][L],len[N],fail[N],id[N],mx[N],mn[N],mnlen[N],lst,
tot
DZYO
·
2020-08-03 03:46
后缀自动机
hiho SAM模板三【带权本质不同串】【广义SAM】
也不能用maxlen[u]-maxlen[fa[u]]来计算
tot
,因为‘10’边会影响结果。
lixuwei2333
·
2020-08-03 02:42
SAM
poj 3417
includeusingnamespacestd;typedeflonglongLL;constintmaxn=100005;constintmaxm=200005;inthe[maxn],ver[maxm],
tot
职业砖瓦匠
·
2020-08-02 23:51
树上差分
【POJ3417】Network-LCA算法+树上差分
做法:点击打开链接以下是本人代码:#include#include#include#include#includeusingnamespacestd;intn,m,
tot
,first[100010],firstq
Maxwei_wzj
·
2020-08-02 22:24
搜索-DFS
算法-LCA
算法-树上差分
树相关总结
**~~树相关总结**~~LCA倍增structedge{intto,nxt;}e[MAX_Ey)swap(x,y);returnver[RMQ(x,y)];}/*dfs(rt,0,1),ST(
tot
)
4790iop
·
2020-08-02 20:26
图论
POJ - 1861 Network (Kruskal)
#include#include#include#include#include#includeusingnamespacestd;typedeflonglongll;intn,m,
tot
,f[32000
恋花飘落
·
2020-08-02 20:19
最小生成树
模板题
上一页
11
12
13
14
15
16
17
18
下一页
按字母分类:
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
其他