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
【模板】字符串哈希
includeusingnamespacestd;constintmaxn=1e6+10;constintbase=131;chars1[maxn],s2[maxn];unsignedlonglongpower[maxn],
tot
K1385170
·
2020-08-24 21:21
|poj 2752|KMP|Seek the Name, Seek the Fame
includeusingnamespacestd;#definems(i,j)memset(i,j,sizeofi);constintMAXN=400000+5;chars[MAXN];intf[MAXN],n,ans[MAXN],
tot
NotFound1
·
2020-08-24 21:00
Poj/Hdu
字符串
-
KMP
[USACO10FEB]慢下来Slowing down(线段树+dfs序)
题目传送门题解这道题还是比较好的;我们先考虑树形成一条链的情况,那就成了单点修改区间查询操作,都是线段树的基本操作;那么我们就使用dfs序的方法,把它变成一条链,那么某棵子树的区间就是dfn[i]+
tot
A_Comme_Amour
·
2020-08-24 19:23
线段树
dfs序
HDU - 2553 N皇后问题
#includeinttot=0,row,line[10],n;voidsearch(introw)//递归搜索可行解{inti,j;if(row==n)
tot
++;//当row=n时,说明每一行的皇后都不冲突
苏摩夜
·
2020-08-24 18:26
第
7
章
暴力求解法
js对比两个数组 (根据arrayA的元素,在arrayB中进行查找)
如果有找到记录就添加进去,没有就添加{key:'a',num1:'0',num2:'0',num3:'0',
tot
':0'}。
esc95
·
2020-08-24 17:02
数组方法
[WOJ4379] 飘雪圣域 [主席树]
defineN200050usingnamespacestd;structNode{intls,rs,val;}t[N*40];inttot,rt[N];vectorv[N];intn,q;voidBuild(int&x,intl,intr){x=++
tot
FSYo
·
2020-08-24 16:31
主席树
宗教信仰(并查集)
你的学校有n名学生(0#includeconstintmaxn=50005;intfa[maxn],ans,m,n,a,b,
tot
=1;boolflag[maxn];voidmakeSet(intn)/
密码锁
·
2020-08-24 15:22
并查集
BZOJ 3531: [Sdoi2014]旅行
Code:#include#include#defineN3000000#defineM30000000#defineoo0x7f7f7f7fusingnamespacestd;intn,q,x,y,mm,
tot
Charlie-Pan
·
2020-08-24 10:54
BZOJ
BZOJ
SDOI
树链剖分
【GDOI2018模拟7.8】质数 乱搞+哥德巴赫猜想
include#definefo(i,a,b)for(inti=a;i=b;i--)usingnamespacestd;constintN=6e3+5;typedeflonglongll;inta[N*N],
tot
Transcendence_magia
·
2020-08-24 09:44
jzoj
数论
暴力
Codeforces 235E Number Challenge 莫比乌斯反演+数论
include#includeusingnamespacestd;typedeflonglongLL;constintN=2005;constintMOD=1073741824;inta,b,c,n,
tot
SFN1036
·
2020-08-24 09:21
数论
莫比乌斯反演
bzoj 3462: DZY Loves Math II 动态规划+组合数
include#include#include#includeusingnamespacestd;typedeflonglongLL;constintMOD=1000000007;ints,p[10],
tot
SFN1036
·
2020-08-24 09:21
数学
动态规划
组合数学
Tot
-1延续漫威
自漫威大部分情节结束或者说是大结局后。大家可能以为所有的超级英雄都死了。可是并没有。像日本的亚人,美国的奇异博士。好吧,也就只有他俩还活着。新一段的开始。奇异博士自火中焚烧,再次复生之后,就再也没有找到其他的同伴。与此同时,在日本的亚人也遭到了袭击。好吧,那我得重新再说一下了,奇异博士是活下来了。不过亚人还是难逃一劫。亚人遭到袭击后就再没有了声色。更别说信息了。所以说在漫威宇宙大结局后,也就只剩下
长安赵公子
·
2020-08-24 09:53
Tot
-2大战光学博士
自从奇异博士,和一眼撞上以后。一眼就觉得很奇怪,为什么在他观察奇异博士的时候,巡查不出他是在未来还是在以前还是在现在。奇异博士也觉得很奇怪。因为奇异博士不能在一眼的附近召唤时空圈。这也跟一眼一样,一眼不能利用黑洞攻击奇异博士。哦吼。两个人正准备切磋切磋的时候。他俩人,正好看见一个黑影正在巴黎塔尖儿上面干着什么?谁也不知道,那就是光学博士。世界上最会伪装的人。不过你想用激光射中他,那就错了。因为镜子
长安赵公子
·
2020-08-24 09:40
Codeforces 1076E E. Vasya and a Tree
QvQ:递归三参数栈爆炸了#includeusingnamespacestd;#defineM524288#defineN300005typedeflonglongll;intL,R,aim,n,m,
tot
Pure_W
·
2020-08-24 07:00
CodeForces
结构体排序➕二分 | 1012 The Best Rank (25 point(s)
include#includeconstintN=2010;constcharnn[6]="*ACME";structGrade{intname;intsc[4];}grade[N];intn,m,gi,
tot
电车上那个cll呀
·
2020-08-24 06:25
bzoj 2960 跨平面 平面图转对偶图 最小树形图
#includeusingnamespacestd;#defineN10005#defineM10005intn,m,cnt,top,
tot
,num;intX[N],Y[N],v[M]
make_it_for_good
·
2020-08-24 05:42
最小树形图
平面图转对偶图
noip模拟题(航空公司)
模拟题(航空公司)有一家航空公司,开设了M(M#definesmax10001usingnamespacestd;intn,m,k,q,x,y,w,geshu,u,v;longlongzuixiao,
tot
qq_45516411
·
2020-08-23 07:33
noip
c++
noip模拟题(活动安排升级版——戏剧表演)
输入第一行一个整数N(N#definesmax500usingnamespacestd;intn,
tot
,top1,top2;structedge{intbe,en;booloper
qq_45516411
·
2020-08-23 07:33
noip
c++
树形dp求树直径、两次dfs求树直径
,M=1000010;inthead[N];intver[M];intedge[M];intNext[M];boolv[N];inttot;voidadd(intx,inty,intz){ver[++
tot
_wjunjie
·
2020-08-23 07:33
模板
树形dp
树的直径与最近公共祖先
dfs
dp
dfs 从1-n取r个数的全排列
#includeusingnamespacestd;inta[6000];intb[6000];intn,r;inttot;voidprint(){
tot
++;for(inti=1;ir)print()
凌晨四点的洛杉矶fly
·
2020-08-23 06:22
算法
数据结构
dfs深搜
HDU3666--差分约束
思路:根据题意可得,Lusingnamespacestd;constintN=805;constintINF=0x3f3f3f3f;intn,m,L,U;inthead[N],
tot
;doubledis
Robis123
·
2020-08-23 06:49
POJ--2749--2-SAT加二分判定
二分答案,判断2-SAT合理性#include#include#include#include#includeusingnamespacestd;constintN=1e3+10;inthead[N],
tot
Robis123
·
2020-08-23 06:19
洛谷 P4752 Divided Prime
题目其实很简单,主要坑点是数组中的1代码:#includeusingnamespacestd;typedeflonglongll;constintmaxn=200000+100;intprime[maxn],
tot
ITKaven
·
2020-08-23 06:49
ACM
洛谷
离散化最妙写法
m[x]:(m[x]=++
tot
);}
kylinholmes
·
2020-08-23 06:20
数据结构
程序设计算法
7.16第一题“竞赛排名”
文件的第一行为参赛总人数N(10thenp[i,j]:=(f[i,j]-avg[j])/
tot
*n;end;fori:=1tondobeginforj:=1to3doy[i]:=y[i]+p[i,j];
CR7tinge
·
2020-08-23 04:54
洛谷 1019 单词接龙
代码】#include#include#include#defineLLlonglong#definergregister#defineN1010usingnamespacestd;intn,ans,
tot
weixin_30737433
·
2020-08-23 03:40
ACM中邻接表的表示方法
intw;intnext;}Edge;Edgee[MAX];intpre[MAX];//初始化memset(pre,-1,sizeof(pre));voidadd(intu,intv,intw){e[
tot
Dean丁
·
2020-08-23 03:11
ACM
洛谷 P1203 [USACO1.1]坏掉的项链Broken Necklace 动态规划
definereregisterintusingnamespacestd;stringa;intn,ans=-1;inlineintf(intx){inttot=0;for(rei=x;;i--){if(a[i]==a[x])
tot
一条自私的鱼
·
2020-08-23 02:28
DP
[P1311][NOIP2011]选择客栈
include#include#defineLLlonglong#definemaxn200005usingnamespacestd;intn,k,p,cl[maxn],mon[maxn],mr[4*maxn],
tot
TirpitzOVO
·
2020-08-23 02:11
刷题
线段树
【SSL1341——POJ3041】Asteroids
DescriptionBessiewantstonavigateherspaceshipthroughadangerousasteroidfieldintheshapeofanNxNgrid(1#include#include#include#include#include#include#includeusingnamespacestd;intn,m,s,
tot
V-Legendary skeleton
·
2020-08-23 01:43
匹配
题解
SCOI 滑雪与时间胶囊 题解
include#include#includeusingnamespacestd;constintMAXN=1e6+5;constintMAXM=5*1e6+5;intn,m,h[MAXN],maxl,
tot
cqbz_ChenJiage
·
2020-08-23 01:14
最小生成树
图论
CF506E题解
下面贴上larryzhong吊打标程的代码:#includeusingnamespacestd;constintP=10007;intn,m,
tot
,f[2][210][210];chars[210];
chenshige
·
2020-08-23 01:05
线性基模板
线性基:structLB{lld[100];inttot;LB(){
tot
=0;memset(d,0,sizeof(d));}booladd(llx){for(inti=63;~i;i--){if(x&
StarrYooSkY
·
2020-08-23 01:32
【题解】 P1283 平板涂色
include#include#includeusingnamespacestd;structnode{intlx,ly,rx,ry,color;}f[20];intn,minn=99999,nofc[20],
tot
Jammy_1215
·
2020-08-23 00:52
数据结构与算法
SSL1333 地鼠的困境【二分图匹配】【匈牙利算法】
代码#include#include#include#include#includeusingnamespacestd;intT,n,m,v,s,
tot
,ans,link[1010],vis[1010]
Jackma_mayichao
·
2020-08-23 00:21
题解
二分图上的操作
#
匈牙利算法
SSL1340 最小路径覆盖【二分图匹配】【匈牙利算法】
include#include#include#include#includeusingnamespacestd;intls[10010],v[10010],link[10010];intT,n,m,x,y,
tot
Jackma_mayichao
·
2020-08-23 00:21
题解
二分图上的操作
#
匈牙利算法
RMQ转换LCA模板 ST算法
原理:voiddfs(intk,intd,longlongsum){cost[k]=sum;pos[k]=++
tot
;///记录第一次出现的时间戳F[
tot
]=k;///记录欧拉序列rmq[
tot
]=d
wJs9528-1
·
2020-08-23 00:09
===图论===
LCA
洛谷P1101 单词方阵
的长度超过了当前点到边界的距离,则continue#include#definemaxn105usingnamespacestd;charG[105][105],ans[105][105];intn,
tot
DreamDraw_Pan
·
2020-08-23 00:31
搜索
ORACLE 管理,SQL 篇--监控
监控事例的等待selectevent,sum(decode(wait_Time,0,0,1))"Prev",sum(decode(wait_Time,0,1,0))"Curr",count(*)"
Tot
"fromv
strayeagle
·
2020-08-23 00:58
题解 CF448E 【Divisors】
#include#include#definelllonglongusingnamespacestd;lla,b,
tot
;voiddfs(llx,lly){if(
tot
>=100000)return;if
A_zjzj
·
2020-08-23 00:39
题解 CF442A 【Borya and Hanabi】
可以推出来的有以下几种:已知颜色,数字未知的只剩下一个已知数字,颜色未知的只剩下一个最后剩下一个代码#include#includeusingnamespacestd;intn,a[6][6],k1[6],
tot
1
A_zjzj
·
2020-08-23 00:39
P1879(玉米田Corn Fields 炒鸡基础状压dp)
(i&(i<<1))){A[++
tot
]=i;if(!
Helium_wild
·
2020-08-23 00:09
DP==状压dp
【SSL 1341&POJ 3041】Asteroids【二分图の最小顶点覆盖】
65536KDescriptionBessiewantstonavigateherspaceshipthroughadangerousasteroidfieldintheshapeofanNxNgrid(1#include#include#includeusingnamespacestd;intn,s,ans,
tot
dreamcastღ
·
2020-08-23 00:34
二分图
·
匈牙利算法
SSLOnlineJudge
二分图
【ssl1341】Asteroids【二分图】【匈牙利算法】【最大匹配问题】
DescriptionBessiewantstonavigateherspaceshipthroughadangerousasteroidfieldintheshapeofanNxNgrid(1#include#include#includetypedeflonglongll;usingnamespacestd;intn,m,link[201],
tot
ssllyr
·
2020-08-23 00:33
二分图/匹配
DFS
SSL题库
USACO 2006 November Gold 玉米地Corn Fields
DescriptionFarmerJohn新买了一块长方形的牧场,这块牧场被划分成M行N列(1usingnamespacestd;constintMaxn=13,p=100000000;intn,m,
tot
DancingZ
·
2020-08-23 00:11
状压dp
第3章 SQL 习题 - 3.22、3.23、3.24
unique的话,SQL应该如下:where1>=(selectcount(title)fromcourse)3.23考虑查询:selectcourse_id,semester,year,sec_id,avg(
tot
_cred
夏商周
·
2020-08-22 20:57
数据库系统概念原书第6版
yolov3详解
到后来代码和论文更深的理解,现在做个总结与回顾boudingbox回归和v2基本没有区别,依旧使用维度聚类v2使用sigmoid函数使得偏移值限制在这个范围内,网络每个预测框依旧预测出5个值tx,ty,tw,th,
tot
_x
爱吃糖的茄子
·
2020-08-22 02:05
计算机视觉
GDCPC2018广东省赛C题
的路径上的值,对于值val来说,最大的异或和是多少这是一道经典可持久化字典树的题目#includeusingnamespacestd;constintN=2e5+5,M=30;intch[N*35][2],
tot
请叫我西木同学
·
2020-08-22 02:46
acm
数据结构
[51nod] 1663 01游戏
的位置#includeusingnamespacestd;chars[100005];intn,l1=-1,l0=-1,s1,s0,
tot
,l=-5
Pure_W
·
2020-08-22 00:07
51nod
模拟
分类讨论
小几何
Noip2004T1 津津的储蓄计划
如果剩的小于0则输出-i,12次后输出存起来的*1.2与剩下的数据范围:X<=350样例:29023028020030017034050908020060-7做题思路:根据题意模拟就好知识点:模拟varsum,
tot
Nameless_05
·
2020-08-22 00:01
Tyvj
模拟
Noip
上一页
5
6
7
8
9
10
11
12
下一页
按字母分类:
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
其他