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
this指针(超详细)
defineSTOCK_H_#includeclassStock{private:std::stringcompany;longshares;doubleshare_val;doubletotal_val;voidset_
tot
美女大神的日子
·
2020-08-14 11:02
c++学习
NKOJ 4284 路径数【最短路计数】
definelllonglongusingnamespacestd;constllN=2e2+5;constllInf=1e18;constllMod=1e9+9;lln,t,mp[N][N],id[N][N];lldis[N*N],vis[N*N],
tot
Yucoh
·
2020-08-14 08:57
NKOJ
图论-最短路
图论-最短路计数
用回溯法法解决八皇后问题
把问题分为若干步骤并递归求解时,如果当前步骤没有合法选择,则函数将返回上一级递归调用,//八皇后问题//C[i]存的是第i行的皇后放在哪一列voidsearch(intcur){inti,j;if(cur==n)
tot
qq_41945366
·
2020-08-14 07:48
jzoj6541 Permutation (树上排列dp)
nusingnamespacestd;typedeflonglongll;constintN=5000+10;intn,mo;lljc[2*N],njc[2*N];intfinal[N],nex[N*2],to[N*2],
tot
jokerwyt
·
2020-08-14 07:14
题解
回溯法输出所有出栈序列
includeusingnamespacestd;inttot,res,sta,n;intr[2005],s[2005];voidrecall(intm){if(m==n+1){//若所有元素都入过栈,输出当前出栈序列
tot
Boss_Song
·
2020-08-14 06:23
洛谷 P2559 [AHOI2002]哈利·波特与魔法石
第三行有一个正整数c,c#include#include#include#include#defineMAXN10010usingnamespacestd;queueque;intS[8];ints,t,m,
tot
HJ921004
·
2020-08-14 06:05
【题解】洛谷P1144最短路计数 spfa
#include#include#includeusingnamespacestd;constintN=1e6+10,mod=1e5+3;intn,m,hd[N],
tot
,dis[N],vis[N],cnt
不进清北不改名
·
2020-08-14 06:07
洛谷
最短路问题
poj 3494 单调栈
intn,m,d[2020];intstack[2020],l[2020],r[2020];longlongres;voidcal(){inttot=0;for(inti=0;i0&&d[stack[
tot
sky_zdk
·
2020-08-14 05:54
ACM
poj
【凸包模板】
structnode{intx,y;}p[N],a[N];intn,
tot
;doubledis(nodea,nodeb){returnhypot(a.x-b.x,a.y-b.y);}intmulti(nodep0
Here_jiaxinwei
·
2020-08-14 04:17
凸包
51nod 1301 集合异或和
你需要构造两个整数集合X与Y,且需要满足以下要求:(1)对所有的xi∈X,满足1#include#include#includeusingnamespacestd;constintmod=1e9+7;intn,m,
tot
ShinyaLicone
·
2020-08-14 04:20
其它OJ
动规
C++
数位DP
洛谷 P1034 [NOIP2002 T4] 矩形覆盖
题目描述在平面上有n个点(n=
tot
;2.长方形数大于k;3.剩余点数小于剩余须加的长方形数;4.剩余点数等于剩余须加的长方形数,用已有的now值直接更新ans值,因为单个点面积为1;5.题目中要求的剪枝
ShinyaLicone
·
2020-08-14 04:11
NOIP
洛谷
dfs/bfs
bzoj1217: [HNOI2003]消防局的设立
include#include#defineN1005usingnamespacestd;structedge{intto,next;}e[2005];inthead[1005],f[1005],n,v,ans,
tot
zhouyuyang233
·
2020-08-14 00:49
辣鸡八中
贪心
第一篇,怎么增加SYN数据包的大小(syn flood攻击实验)
谢谢iphdr->
tot
_len总长度字段(16位)是指整个IP数据报的长度,以字节为单位。利用首部长度字段和总长度字段,就可以知道IP数据报中数据内容的起始位置和长度。
醇雾
·
2020-08-13 23:48
DDoS攻防学习
P2900 [USACO08MAR]土地征用 [斜率优化]
如果被包涵就直接剔除这个点显然取一段连续的是最优的,因此定义f[i]表示1--i的最小价值斜率优化搞一波,树形结合来写#include#defineN50050#defineLLlonglongusingnamespacestd;LLf[N],n,
tot
FSYo
·
2020-08-13 18:11
斜率优化
P3128 [USACO15DEC]最大流 [树上差分]
传送门点权差分,点加点加,lca减,fa[lca]减#include#defineN50050usingnamespacestd;intfirst[N],next[N*2],to[N*2],
tot
;intn
FSYo
·
2020-08-13 18:40
uva 11039
sizeof(vis));scanf("%d",&q);while(q--){intx;scanf("%d",&x);if(x>0)vis[x]=1;elsevis[-x]=-1;}intflag=0,
tot
sky_zdk
·
2020-08-13 18:02
UVA&&LA
算法竞赛入门经典训练指南
[c++]gcd(数论)
自己的一个小结文章目录题目描述输入输出样例输入样例输出提示思路看看代码有利于理解题目描述给定整数N,求1#defineLLlonglong#defineregregister#defineM10000000intn,
tot
Pi_UK(wjh)
·
2020-08-13 18:27
考试专用题
数论
神经网络举例(含卷积)------Pytorch
3,6))#把图片转换为tensor'''fromPILimportImagefromtorchvision.transformsimportToTensor,ToPILImageto_tensor=
ToT
轻羽羽
·
2020-08-13 16:51
PyTorch
算法练习--卡片游戏
1357426实现:functionf(n){vararr=newArray();for(vari=0;i1;){vartoThrow=arr[0];arr.splice(0,1);ret.push(
toT
mybwu_com
·
2020-08-13 16:25
洛谷 P1550 [USACO08OCT]打井Watering Hole
include#includeusingnamespacestd;constintmaxn=310*310;structnode{intx;inty;intv;}tu[maxn];intn,ans,num,
tot
M_ercury_
·
2020-08-13 15:23
===图论===
最小生成树
Girls and Boys
includeusingnamespacestd;constintMAXN=5010;constintMAXM=50010;structEdge{intto,next;}edge[MAXM];inthead[MAXN],
tot
bo-jwolf
·
2020-08-13 15:27
模版
二分图
codeforces1391D 505
的正方形肯定不行那么把#definepbpush_backusingnamespacestd;typedeflonglongll;constintmaxl=1e6+10;intn,m,cas,k,cnt,
tot
二分抄代码
·
2020-08-13 15:26
状态压缩
数树数
#include#definemaxn100005usingnamespacestd;intn,T,Q,head[maxn],s[maxn],lsh[maxn*3],dy[maxn*3],t1,t2,
tot
liankewei
·
2020-08-13 15:44
树链剖分
线段树
Hamming Codes 海明码
HammingCodes海明码给出N,B和D:找出N个编码(10dobeginiftemand1=1theninc(z);tem:=temshr1;end;ifznthenbeginfori:=1
tot
jie_guale
·
2020-08-13 14:49
usaco
NOIP2011黎明前夕的黑暗
【校内OJ2645】 hyc的xor/mex (01Trie)
代码~】#includeusingnamespacestd;constintMAXN=1e7+10;intn,q;inttag;intsiz[MAXN],vis[MAXN],son[MAXN][2],
tot
Michael_GLF
·
2020-08-13 14:21
————字符串————
Trie
bzoj 1997 判断是否为平面图
includeusingnamespacestd;namespaceSAT{constintmaxn=20005;constintmaxm=5000005;intn;inthe[maxn],ver[maxm],ne[maxm],
tot
职业砖瓦匠
·
2020-08-13 14:24
2-SAT
oracle解决表空间不足问题
128(在表空间SYSTEM中)扩展这种情况是表空间不够需要查看表空间的容量,和表空间所对应的数据文件连上数据查看表空间情况:SELECTUPPER(F.TABLESPACE_NAME)"表空间名",D.
TOT
_GROOTTE_MB
chw65897
·
2020-08-13 13:47
树中点对距离(点分治)
includeconstlonglongmaxlongint=2147483647;usingnamespacestd;longlongdis[12000],next[22000],last[20020],to[20200],n,m,
tot
无尽的蓝黄
·
2020-08-13 13:49
题解
树
点分治
HDU 5977 & 2016 ICPC 大连 G:点分治
给出一棵树(nusingnamespacestd;constintmaxn=5e4+100;constintmaxk=12;intfirst[maxn],nxt[maxn*2],des[maxn*2],
tot
calabash_boy
·
2020-08-13 13:27
HDU
灌水(USACO)
/*问题:1.分不清点与边(全部)2.
tot
与i计算重复 */#includeusingnamespace
蒟蒻AkidLZJ小李
·
2020-08-13 12:27
信奥
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
上一页
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
其他