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
NXT
CCF CSP 201403-4 网络延迟
树的最长直径#include#includeusingnamespacestd;constintN=1e5+10;intd[N],ans;inth[N],tot,vis[N];structEdge{intto,
nxt
hbulzh
·
2020-09-12 13:17
CCF
树形DP
BZOJ3742 : Painting
用费用流即可感觉复杂度飞起来了…#includeconstintinf=~0U>>2,N=30000,M=1000110,MAXN=160;intn,x,y,i,j;intu[M],v[M],c[M],co[M],
nxt
weixin_34055787
·
2020-09-12 07:45
P2756 飞行员配对方案问题
include#includeusingnamespacestd;constintMAXN=1000010,MAXM=1000010;intn,s,t;structEdge{intfrom,to,w,
nxt
Object_S
·
2020-09-12 07:03
A
--
题解
Source
--
网络流24题
图论
--
网络流
图论
--
最小割
二分图最大匹配【匈牙利 || Dinic最大流】
匈牙利算法intdfs(intu){for(inti=head[u];i;i=E[i].
nxt
){intv=E[i].v;if(!vis[v]){vis[v]=1;if(!
niiick
·
2020-09-12 06:46
网络流
二分图
最大流
(vijos 1892 noip 模拟 tree)
include#include#include#include#defineLLlonglongusingnamespacestd;constintN=1010;intn;structnode{intto,
nxt
SDFZspli
·
2020-09-12 05:09
vijos
noip模拟
树形DP
【网络流24题】搭配飞行员(最大流+二分图匹配)
includeusingnamespacestd;constintsm=105,sn=sm*sm+200;constintInf=0x3f3f3f3f;intS,T;intM,N,tot=1,Flow;intto[sn],
nxt
Etta19
·
2020-09-12 05:41
网络流
最大流
题解:2017-2018 ACM-ICPC Southeastern European Regional Programming Contest (SEERC 2017)
1e7+9,M=1e9+7;chara[N],b[N];intn,k,f[2][N],h[127];intmain(){scanf("%d%d",&k,&n);for(charc='A';c=0)f[
nxt
wu-kan
·
2020-09-12 05:45
acm
题解
suffix_array(后缀数组) 学习笔记
defineN200100usingnamespacestd;intn,SA[N],rnk[N],height[N];charS[N];inlinevoidget_SA(){staticintx[N],y[N],t[N],head[N],
nxt
hz_826
·
2020-09-12 04:33
解题报告
【AtCoder】【思维】【图论】Splatter Painting(AGC012)
数据范围:1maxd[v],那么因为1#include#include#defineMAXN100000usingnamespacestd;structnode{intto;node*
nxt
;}edges
G20202502
·
2020-09-12 04:18
exams
思维题
图论
basic
Atcoder Grand Contest 012 B - Splatter Painting解题报告
及其周围距离#defineN200100intn,m,q,i,dep[N],col[N],tot;boolvis[N];structC{intv,d,c;}c[N];structnode{intto;node*
nxt
hz_826
·
2020-09-12 04:18
解题报告
[CF280C]Game on Tree
一个点被染黑的可能是它的父亲或它自己中的一个被染黑,所以它给出贡献的概率是它深度的倒数,累加即可卡点:无C++Code:#include#definemaxn100010inthead[maxn],cnt;structEdge{intto,
nxt
weixin_34381687
·
2020-09-11 17:56
百度秋招深圳-C++/PHP研发工程师面试杂记
引子2018/09/19晴我参加了百度秋招面试,期望方向是PHP研发面试地点在广东省深圳市百度国际大厦,粗略估计了一下我那一场的面试大概有15~20来人参加https://youtu.be/
nXT
_wz5Gcq4
hldh214
·
2020-09-11 01:34
Interview
[算法][面试]二叉树非递归形式的遍历及层级遍历
deflevel_order(root)->List[List[int]]:#左程云所使用的方法,略繁琐,一般不用ifnotroot:return[]queue,res=[root],[]line_res,last_one,
nxt
_last_one
身披白袍
·
2020-09-10 22:35
算法
面试
二叉树
数据结构
算法
python
R | 简单的学生检验(t-test)
百度百科:t-test主要用于样本含量较小(例如
nXt
.test(X,mu=4.5)OneSamplet-testdata:Xt=-0.93574,df=9,p-value=0.3738alternativehypothesis
尘世中一个迷途小书僮
·
2020-08-27 16:28
LruCache,DiskLruCache实现分析
LinkHashMap(关键的数据结构)最新的元素指向头表(头表前一个元素,Tail)(头表后一个元素指向最老的元素)在构造器中,head.
nxt
=head.prv,此时链表为空LinkedHashMap
franos1212
·
2020-08-26 23:12
缓存
内存优化
LruCache
Lru
android
数组字典树模板
还是存个母版作为改的基础比较好暂时懒得学内存池,就都用数组版本吧全局要把trie[0].init()一次structNODE{intnxt[10];intval;voidinit(){val=0;memset(
nxt
weixin_30270561
·
2020-08-26 14:26
字典树的细节
查找函数(参数:字符串)优势:空间换时间时间&空间复杂度:1.时间复杂度:表示单词的最长长度2.空间复杂度:,是单词数量,是平均单词长度举个例子:1.结构体:structnode{intcnt;node*
nxt
Ivanzn
·
2020-08-26 11:36
字典树
图论第一发————最短路
临接表核心代码没几行临接表有向图m无向图2*m#include#include#include#include#includeusingnamespacestd;intnum=0;inthead[10005]={0},
nxt
秦艺丹
·
2020-08-26 11:40
模拟微博登陆,获取微博cookie
请勿有违规违法行为;准备工作:我们需要安装一个Guzzlepackage;(当然不装也行);直接上代码;$headers=["User-Agent"=>"Mozilla/5.0(Linux;Android5.1.1;
nxt
-al10Build
韩寅嵩
·
2020-08-25 15:40
php
C++ P3379 【模板】最近公共祖先(LCA)
#include#includeusingnamespacestd;intcnt=0,head[1000010],f[500010][21],d[1000010];structEdge{intv,
nxt
Object_S
·
2020-08-25 04:33
洛谷P3398 仓鼠找sugar(LCA+数学)
include#include#include#include#include#includeusingnamespacestd;constintmaxn=100010;inttot;inthead[maxn],
nxt
Pinaoo
·
2020-08-25 04:56
LCA
洛谷P3379
#include#include#include#include#includeusingnamespacestd;constintmaxn=1e6+5;structnode{intto,
nxt
;}ed
LXY_XYL
·
2020-08-25 04:59
洛谷
点双连通分量[模板]
#includeusingnamespacestd;constintmaxn=2e5+10;intn,m,cut[maxn];structedge{intto,
nxt
;}d[maxn];inthead[
issue敲腻害
·
2020-08-25 01:07
我的模板类
线性规划与网络流24题 题解及部分代码以及小结
includeusingnamespacestd;constintN=10010;constintinf=0x3f3f3f3f;queueQ;intS,T,n,m,head[N],to[2*N],w[2*N],
nxt
Bfk_
·
2020-08-25 00:33
&
图论
网络流
题解
总结
【解题总结】Waterloo Local 2012-2013(Codeforces Gym 100169)
defineINF10000000000000000llusingnamespacestd;typedeflonglongll;typedefpair>pill;intn,m,p;intto[80005],
nxt
zqy1018
·
2020-08-25 00:03
解题总结
(重边/桥)Caocao's Bridges
0时需要输出1#includeusingnamespacestd;constintmaxn=1000+5,maxm=maxn*maxn,inf=0x3f3f3f3f;structEdge{intto,
nxt
swpu_cd
·
2020-08-24 23:12
总结
「ICPC World Finals 2019」何以伊名始(广义后缀自动机)
还挺水的(逃AC代码:#pragmaGCCoptimize(2)#includeusingnamespacestd;constintMAXN=2e6+50;inttrie[MAXN][26],
nxt
[MAXN
Nightmare丶
·
2020-08-24 22:32
广义后缀自动机
Seek the Name, Seek the Fame (KMP) 和(HASH)两种方法
#include#include#definemaxn400010chara[maxn];intnxt[maxn];intlen;voidgetnxt(){
nxt
[0]=0;inti=1,j=0;while
CSYZ!!!
·
2020-08-24 22:54
KMP
HDU 1827&&3072 强连通分量 解题报告
include#includeusingnamespacestd;#defineN10010#defineM100010intn,m;intcnt=-1,head[N];structEdge{intto,
nxt
onepointo
·
2020-08-24 22:00
————图论————
图论——Tarjan
hdu3374最大最小表示+kmp
=s[k+1])k=
nxt
[k];if(s[i]==s[k+1])k++;
nxt
[i]=k;}}intkmp(char*p){intn=2*len;intk=0,j=0
nash142857
·
2020-08-24 22:49
字符串处理
省选专练[USACO18JAN]Cow at Large Gold
求出深度和当前距离叶子的最近距离第二次DFS求出所有深度小于距离最近叶子的点#includeusingnamespacestd;constintN=1e5+10;structFront_star{intu,v,w,
nxt
dingwufu9301
·
2020-08-24 21:12
KMP解决最小循环节问题
若n%(n-
nxt
[n])==0&&
nxt
[n](n是字符串长度)则循环节个数为n/(n-
nxt
[n]),更一般地对每一个位置$i$若n
ayccb66820
·
2020-08-24 21:17
HDU - 1800 字符串哈希
代码:#includeusingnamespacestd;constintMAXN=3005;constintMOD=100007;structNode{Node*
nxt
;//后继指针charstr[100
Bahuia
·
2020-08-24 21:48
字符串哈希
HDU - 1880 字符串哈希
思路:字符串哈希模板题代码:#includeusingnamespacestd;constintMAXN=210000;constintMOD=100007;structNode{Node*
nxt
;//
Bahuia
·
2020-08-24 20:51
字符串哈希
[luogu2982][USACO10FEB]慢下来Slowing down(树状数组+dfs序)
题目描述EverydayeachofFarmerJohn'sN(12#include3#include4typedefstruct{5intto,
nxt
;6}edge;7edgegra[200010];
banjie8476
·
2020-08-24 19:28
USACO Slowing down
DescriptionEverydayeachofFarmerJohn'sN(1usingnamespacestd;intn,c[100001],p[100001],ans[100001];inttot,to[200001],
nxt
anhaoti3785
·
2020-08-24 19:50
Short Summary of Blockchain Consensus (区块链共识小结)
ProofofWork(PoW)Bitcoin,EthereumProofofStake(PoS)Modifiedimplementations:
NXT
,QTUMDelegatedProofofStake
长也之道
·
2020-08-24 17:27
0721-简单易懂的SPFA模板-洛谷3371
include#include#include#include#include#include#defineN10009#defineM500009usingnamespacestd;intdis[N],
nxt
Faithfully__xly
·
2020-08-24 11:06
SPFA
省选专练[TJOI2013]循环格
的点所以用费用流表示改变方向#includeusingnamespacestd;constintN=1e5+10;constintINF=0x3f3f3f3f;structFront_star{intu,v,w,c,
nxt
dingwufu9301
·
2020-08-24 08:23
稳定币Nature Token打造线下全生态支付场景
在过了法定禁售期后,
NXT
可以面对全球合格投资者交易和流通。
yitianzhiming
·
2020-08-23 23:39
科技
bzoj1729:[Usaco2005 dec]Cow Patterns 牛的模式匹配(kmp+思维)
个数的数列AA,其数字范围为11~k(k#include#includeusingnamespacestd;#defineN100010#defineinf0x3f3f3f3fintn,m,k,ans=0,
nxt
sunshiness_s
·
2020-08-23 07:17
kmp
常州集训难题选解
一棵n(n#includeusingnamespacestd;typedeflonglongll;constintN=100005,M=200005;intn,x,y,z,e=1,f[N],hd[N],
nxt
Monster__Yi
·
2020-08-23 05:59
比赛
贪心
树形dp
LG-P1525 关押罪犯
includeusingnamespacestd;constintmaxn=20006,maxm=100006'9'){if(ch=='-')f=-1;ch=getchar();}while(ch>='0'&&ch0&&flg_;i=
nxt
xu0_zy
·
2020-08-23 04:47
日常小题
-
2018
二分
二分图染色
luogu3379 最近公共祖先(LCA) tarjan 倍增
tarjan不多言#include#includeusingnamespacestd;structEdge{inttoo,
nxt
;}edge[1000005];structQues{intnxt,too
sxlfyz_chenyx
·
2020-08-23 02:06
图论
2017/11/7
include#include#defineLLlonglong#defineMOD1000000007usingnamespacestd;intcnt[4][2],num[4][1000005][2],
nxt
TirpitzOVO
·
2020-08-23 02:11
刷题
图论
KMP模板
1voidNXT()2{3intlen=strlen(b);4
nxt
[0]=-1;5intj=0,k=-1;6while(j
baniu8623
·
2020-08-23 01:11
【CodeM初赛B轮】A 贪心
includeusingnamespacestd;constintmaxn=100010;intn,cnt,ans;intfa[maxn],tag[maxn],k[maxn],p[maxn],head[maxn],
nxt
aodanchui1057
·
2020-08-23 01:30
SZUOJ链表题
includeusingnamespacestd;structElementType//数据类型{intdata;booloperatornxt;intlength=0;while(temp){temp=temp->
nxt
QuteMelon
·
2020-08-22 14:48
OJ题
蜂鸟E203 硬件学习(一)
对于寄存器避免直接使用always块编写,采用模块化的标准DFF模块进行例化例如:一个名为flg_dfflr的寄存器,除了时钟(clk)和复位信号(rst_n),还有使能信号flg_ena和输入(flg_
nxt
人无再少年97
·
2020-08-22 09:44
蜂鸟E203
pat1074
#include#include#include#include#include#defineN100005#definelllonglongusingnamespacestd;intdata[N],
nxt
王的守护者
·
2020-08-21 05:06
PAT
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他