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
POJ1151 HDU1542 CODEVS3044 Atlantis 题解&代码
include#include#include#include#definelson(ohx,hy;mapvis;constintmaxn=105;intT,n,p[maxn*2],val[maxn*2],
tot
Rainbow6174
·
2020-08-13 12:12
POJ
HDU
线段树
CODEVS
HDU学习记录
POJ刷题记录
BZOJ 3295 动态逆序对 CDQ分治
#include#include#include#defineM100100usingnamespacestd;intn,m,cnt[M],a[M],b[M],c[M],tim[M],f[M>>1],
tot
PoPoQQQ
·
2020-08-13 12:29
BZOJ
树状数组
CDQ分治
【NOIP2003提高组T4】传染病控制-DFS剪枝
以下是本人代码:#include#include#include#include#include#include#defineinf2000000000usingnamespacestd;intn,p,
tot
Maxwei_wzj
·
2020-08-13 12:47
搜索-DFS
已经设置表空间自增还是报错ORA-01653
--查看表空间的使用情况SELECTUPPER(F.TABLESPACE_NAME)"表空间名",D.
TOT
_GROOTTE_MB"表空间大小(M)",D.
TOT
_GROOTTE_MB-F.TOTAL_BYTES
F1LIppED
·
2020-08-13 11:26
工作总结
Power Crisis
causedbyashortageofrainandhencelowlevelsinthehydrodams),acontingencyschemewasdevelopedtoturnoffthepowertoareasofthecountryinasystematic,
tot
u011123263
·
2020-08-13 10:59
数据结构
动态逆序对 BIT套线段树
动态逆序对Code#include#definerep(i,a,b)for(inti=(a);i>1;sum[o]+=v;if(L==R)return;if(x>1,
tot
=0;if(M+1>v){boolok
ShɑΙteж
·
2020-08-13 10:08
数据结构
【题】【数学(卡特兰数)】NKOJ3798 有趣的数列
它是从1到2n共2n个整数的一个排列{Ai};(2)所有的奇数项满足A1#includeusingnamespacestd;constintneed=2000006;intn,p;intpr[need],
tot
Y__XV
·
2020-08-13 10:12
题
数学
结论
Power Crisis
causedbyashortageofrainandhencelowlevelsinthehydrodams),acontingencyschemewasdevelopedtoturnoffthepowertoareasofthecountryinasystematic,
tot
编程高手在此
·
2020-08-13 10:13
队列
HDU 3221矩阵快速幂&欧拉定理
#include#definelllonglongusingnamespacestd;constintN=2;constintMX=40000;lla,b,p,MOD,n,
tot
,prime[7000]
ACM2017
·
2020-08-12 15:30
矩阵
数论
NOIP2017 Day1 T2 70分
具体实现…对于FF和EE的匹配,用一个计数变量(比如tottot)来模拟就好,遇到FF,就让计数器加11(
tot
++),遇到EE,就让计数器减11(
oisdoaiu
·
2020-08-12 12:58
NOIP提高组真题
NOIP2017
模拟
字符串
自查能力
P4924 [1007]魔法少女小Scarlet
P4924[1007]魔法少女小Scarlet题目描述代码#includeusingnamespacestd;intg[510][510],
tot
,f[510][510];//f数组充当旋转数组intmain
@Milly
·
2020-08-12 01:12
洛谷
洛谷 P4924 [1007]魔法少女小Scarlet (模拟/矩阵旋转)
不错的矩阵旋转题#include#include#defineMAXN550usingnamespacestd;intn,m,
tot
,a[MAXN][MAXN],x,y,r,t;intmain(){#ifdefWINEfreopen
wineandchord
·
2020-08-12 01:34
模拟
TwinCAT写了个CSP模式的相对位移(三次多项式插值)
2.这个写的是个相对位移IFin_cspTHENa_acc:=v_uni/t_acc;t_
tot
:=2*t_acc+(x_
tot
-a_acc*EXPT(t_acc,2))/v_uni;CASEcsp_progressOFpre
JojenZz
·
2020-08-11 12:18
TwinCAT
又是毕业季II,洛谷之提高历练地,数论(3-5)
的因子相乘输出即可代码#include#include#includeintn;inttot[1000010];intans[10001];voidk(intx){for(inti=1;i*ians[
tot
Deep_Kevin
·
2020-08-11 11:25
P3810 三维偏序(陌上花开)
definemp_make_pair#definePrpairconstintNN=400100;constintinf=0x3f3f3f3f;lln,m,k,x,y,z,q,W,T,N,cnt,tmp,dst,cas,val,
tot
许启明
·
2020-08-11 04:48
数据结构
HDOJ 6795 Little W and Contest(杭电多校2020第三场1005)(并查集) 一种比较无脑的做法
pid=6795思路:
tot
2和
tot
1记录所有人中有多少个1多少个2cnt1[x]和cnt2[x]记录以x为老大的这组人中有多少个1多少个2。
REXWind_W
·
2020-08-11 03:24
杭电多校
排列组合
2020牛客暑期多校训练营(第七场)
ASocialDistancingBMaskAllocation#includeusingnamespacestd;constintN=1e6+10;intres[N],
tot
;intn,m,k;intmain
Zaller
·
2020-08-11 02:01
多校
luogu P2152 [SDOI2009]SuperGCD
代码:#include#include#defineRregister#defineIinlinechars[10001];inta[10001],b[10001],d[10001];intla,lb,
tot
zsyz_ZZY
·
2020-08-11 02:04
洛谷 【动态规划4】树与图上的动态规划
include#include#includeusingnamespacestd;constintmaxN=6010;intn,w[maxN],head[maxN],f[maxN][2],root,l,k,
tot
AristotleSDU
·
2020-08-11 00:51
洛谷题目
JZOJ 3252. 【GDOI三校联考】炸弹
其实建图时\(5\)是不会连向\(6\)的\(Code\)#include#include#includeusingnamespacestd;intn,m,mp[55][55],f[55*55][4],
tot
leiyuanze
·
2020-08-10 21:00
星星之火OIer:虫食算
include#include#include#includeusingnamespacestd;boolflag[95];chara[28],b[28],c[28],d[28];intv[95],n,
tot
星星之火OIer
·
2020-08-10 20:37
信息学奥赛专栏
搜索
【模板】树链剖分
include#includeusingnamespacestd;#definelchisiz[s1])s1=v;}son[x]=s1;}inlinevoiddfs1(intx,inttp){id[x]=++
tot
C20193620
·
2020-08-10 19:49
算法模板
树链剖分
Standard IO-----数的划分问题(二)(CCF 1186)
输入第一行输入两个整数(1#include#includeusingnamespacestd;intn,m,
tot
;voiddfs(intt,intsum){if(t==m&&sum==0){
tot
++
于是你怒水一帖
·
2020-08-10 19:18
C++入门
DP入门
CCF题目
Standard IO-----数的划分问题(一)(CCF 1185)
输入第一行包含两个整数N和M(1#include#includeusingnamespacestd;intn,m,
tot
;voiddfs(intt,intsum){if(t==m&&sum==0){
tot
于是你怒水一帖
·
2020-08-10 19:18
C++入门
DP入门
CCF题目
Standard IO-----数的划分问题(三)(CCF 1187)
输入第一行输入两个整数N,M(1#include#includeusingnamespacestd;intn,m,
tot
;intf(intt,intsum,intk){ints=0;if(t>m||sum
于是你怒水一帖
·
2020-08-10 19:18
C++入门
DP入门
CCF题目
洛谷OJ - P1347 排序(拓扑排序)
include#include#include#include#defineLLlonglongusingnamespacestd;vectorG[30];intout[30],in[30];intn,m,t,
tot
i逆天耗子丶
·
2020-08-10 19:49
洛谷OJ
图论
-
拓扑排序
51nod 1220 约数之和 杜教筛
includeusingnamespacestd;typedeflonglongLL;constintN=2000005;constintMOD=1000000007;intn,prime[N],yue[N],low[N],s[N],
tot
SFN1036
·
2020-08-10 19:19
杜教筛
最小费用最大流
//luogu-judger-enable-o2#includeusingnamespacestd;constintN=1e4+100;intn,m,S,T,
tot
;inthead[N];structnode
lixuwei2333
·
2020-08-10 19:14
算法模板
网络流
洛谷——P3366 【模板】最小生成树
(N#include#includeusingnamespacestd;structarr{intx,y,z;}a[2000001];into,p,n,m,k,
tot
,ans,f[2000001];intfind
peter_zhu01
·
2020-08-10 18:24
C++
洛谷试炼场
最小生成树
代码实现Linux的ac命令
附带的两个常用的命令参数:-d日统计-p每个用户的统计ac命令运行结果进入命令行,依次敲下命令,输出结果比较了然:$actotal312.64$ac-dOct8
tot
kkknd007
·
2020-08-10 17:13
Linux学习
洛谷 P1120 小木棍 [数据加强版 ]
】//P1120小木棍[数据加强版]#include#include#definefo(i,j,k)for(inti=j;iy;}booldfs(intnow,intnext,intd){if(d==
tot
我要吃熊猫
·
2020-08-10 15:05
深搜
平衡树(splay)模板,包含常规6大操作以及区间翻转
【模板】普通平衡树已经测试过上述题目(而且性能较好),可放心食用~~#includeusingnamespacestd;constintN=100005;intn;structSplay{intrt,
tot
夕林山寸
·
2020-08-10 15:47
数据结构————平衡树
最小费用最大流
constintINF=0x3f3f3f3f;structEdge{intv,c,w,nxt;//v表示边的另一个顶点,//c表示当前剩余容量,//w表示单位流量费用}e[MAXM];inthead[MAXN],s,t,
tot
algzjh
·
2020-08-10 15:54
#
网络流及二分图
最小费用最大流
洛谷 P3376 【模板】网络最大流 最大流 FF算法模板
FF算法模板注意:对一条单向边要存其反向边,因此存边的数组要开2倍#includeusingnamespacestd;constintmaxn=1e4+1,maxm=2e5+1;intn,m,s,t,
tot
aiworenyanzhousuanfa
·
2020-08-10 15:15
二分图+网络流
导弹拦截
程序#include#includeusingnamespacestd;intmain(){inti=-1,a[1001],f[1000],max,min,
tot
=0;memset(f,0,sizeof
YoDReAMfY
·
2020-08-10 15:33
C++学习
HDU 5765 Bonds(bfs+高维前缀和)
第一行一整数T表示用例组数,每组用例首先输入两个整数n和m表示点数和边数,之后m行每行两个整数u和v表示u,v之间有一条边(Tv,其答案=u和v处于两个不同且互补的连通点集的方法数=(两个连通点集互补的方法数
tot
-u
v5zsq
·
2020-08-10 14:45
HDU
搜索
杂题
luogu 1357 花园 (状压dp+矩阵快速幂 推荐)
1~N(2#include#include#definelllonglongusingnamespacestd;intconstMOD=1e9+7;intconstMAX=35;lln;intm,k,
tot
_TCgogogo_
·
2020-08-10 14:24
ACM
动态规划
算法题
洛谷_3371 单源最短路径(弱化版)
代码#include#include#includeusingnamespacestd;intn,m,s,
tot
,dis[10005],head[500005];boolvis[10005];structEdge
nymph181
·
2020-08-10 14:18
图论
【NOIP2018普及组】龙虎斗
分析算出龙方和虎方气势差
tot
若
tot
=0p2=m若
tot
>0i=m-
tot
/s2;j=i-1;把p2放在i或j上(比较放在哪个位置使最后气势差最小)若totusingnamespacestd;typedeflonglongll
Trilarflagz
·
2020-08-10 13:00
NOIP2018普及组
网络流算法+例题整理
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
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
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
其他