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
NameSpaces
opencv学习记录——(15)模板匹配
一、单模板匹配#include"opencv2/opencv.hpp"#includeusing
namespaces
td;usingnamespacecv;voidmain(){///单模板匹配Mattemp
蜡笔小新qqq
·
2024-02-05 06:34
opencv
学习
计算机视觉
P8711 [蓝桥杯 2020 省 B1] 整除序列--2024冲刺蓝桥杯省一
点击跳转例题模拟即可#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128using
namespaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:27
蓝桥杯
职场和发展
P8717 [蓝桥杯 2020 省 AB2] 成绩分析--2024冲刺蓝桥杯省一
就是模拟即可一些注意事项在代码中#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128using
namespaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:57
蓝桥杯
职场和发展
数据结构
c++
算法
P8761 [蓝桥杯 2021 国 BC] 大写--2024蓝桥杯冲刺省一
#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128using
namespaces
td;constintN
一只蓝色小鲨鱼
·
2024-02-05 06:57
蓝桥杯
职场和发展
c++
算法
数据结构
P8722 [蓝桥杯 2020 省 AB3] 日期识别--2024蓝桥杯冲刺省一
:字符串总结注意事项在代码中#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128using
namespaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:51
蓝桥杯
职场和发展
数据结构
c++
算法
1836:【04NOIP提高组】合并果子(三种做法)
代码:#includeusing
namespaces
td;intans,n,a[100001];intmain(){cin>>n;for(inti=0;i>a[i];sort(a,a+n);while(
伟大的拜线段树jjh
·
2024-02-05 06:44
贪心算法
树
队列
算法
c++
开发语言
详解洛谷P2912 [USACO08OCT] Pasture Walking G(牧场行走)(lca模板题)
题目思路一道模板题,没啥好说的,直接见代码代码#includeusing
namespaces
td;intn,q,a,to[100001][22],b,deep[100001],c,t[1000001];
伟大的拜线段树jjh
·
2024-02-05 05:08
深度优先
算法
图论
STL初识,for_each
容器嵌套容器1.STL初识1.stl的诞生2.stl基本概念3.stl六大组件4.stl中容器,算法,迭代器2.vectorfor_eachfor_each实质如图代码示例:#includeusing
namespaces
td
柏箱
·
2024-02-05 05:32
c++
开发语言
stl
vector
for_each
http服务器实现
#include#include#include#pragmacomment(lib,"ws2_32.lib")using
namespaces
td;unsignedinti=0;constunsignedintMAXCNT
你好!蒋韦杰-(烟雨平生)
·
2024-02-05 05:45
http
服务器
c++
c语言
C++类和对象的属性
防止误操作#includeusing
namespaces
td;structPoint{intx;inty;};intmain(){//const修饰指针,指向的对象不能通过该指针被修改constPoint
A small mouse
·
2024-02-05 04:04
c++
开发语言
C/C++指针深析
所以这里辨析了各种指针类型,实践出真知,下面的例子如果自己敲下来就更好了const修饰指针#includeusing
namespaces
td;classRectangle{public:Rectangle
A small mouse
·
2024-02-05 04:03
c++
c++
c语言
算法
备战蓝桥杯---搜索(优化1)
显然,我们可以用BFS解决,具体实现与八数码类似:下面是代码:#includeusing
namespaces
td;#defineN3000000stringa,b;inthh,dis[N],cnt;structnode
cocoack
·
2024-02-05 04:47
蓝桥杯
算法
宽度优先
剪枝
备战蓝桥杯---搜索(应用基础1)
下面是AC代码:#includeusing
namespaces
td;inta[12][12];intbiao[20][20]={{0,0,0,0,0,0,0,0,0,0},{0,1,1,1,2,2,2,3,3,3
cocoack
·
2024-02-05 04:16
蓝桥杯
深度优先
c++
算法
C++(20):is_invocable
is_invocable,用于判定某个可执行类型(函数,lambda,函数对象等)的函数签名1.is_invocable/is_invocable_v检查函数参数类型#include#includeusing
namespaces
td
风静如云
·
2024-02-05 03:04
C/C++
c++
开发语言
C++:通过count和find判断vector中是否包含某个数据
vector本身没有提供可以检测某个数据是否在其中的成员方法,可以使用泛型方法count和find进行检查:#include#include#includeusing
namespaces
td;intmain
风静如云
·
2024-02-05 03:00
C/C++
c++
2022ccpc女生赛+补题
代码:#include#definelllonglongconstintmaxn=1e6+10;using
namespaces
td;intn,k;llmaxx=-1,mt;inta[maxn]={0};
cbx-zzz
·
2024-02-05 03:00
codeforces
ccpc
算法
c++
数据结构
2021ccpc女生赛+补题
代码:#include#definelllonglongconstintmaxn=2e5+10;using
namespaces
td;inta[maxn],res[m
cbx-zzz
·
2024-02-05 03:59
ccpc
codeforces
算法
c++
数据结构
756. 蛇形矩阵
//#include#includeusing
namespaces
td;con
某翁
·
2024-02-05 02:41
CF1643补题记录
B和上海那题异曲同工的构造题补图真是个好东西#includeusing
namespaces
td;typedeflonglongll;constintN=55;intt,n;inta[N];intmain
whtfffffff
·
2024-02-05 01:39
CF
CF 775 Div2 补题
#include#includeusing
namespaces
td;
lqrs
·
2024-02-05 01:36
codefoeces
c++
CF1624 补题报告
CodeforcesRound764(Div.3)补题报告(A~E)A.PlusOneontheSubsetA.子集上的加一题意可对给定序列的子串进行加一的操作,使所有元素相等思路求序列最大值与最小值的差代码#includeusing
namespaces
td
Daniel_1011
·
2024-02-05 00:35
c++
笔记
欧拉函数 笔记
复习:欧拉筛intcnt,prime[10000005],n;boolvis[100000005];voidolaprime(){vis[1]=1;for(inti=2;iusing
namespaces
td
Daniel_1011
·
2024-02-05 00:04
笔记
周赛和cf补题
#include#include#include#include#include#includetypedeflonglongll;using
namespaces
td;lln,l;lla[200005]
Vision_1
·
2024-02-05 00:34
c++
算法
c语言
CF1878 补题报告
思路判断输入的a[i]中是否有值为k的数即可代码#includeusing
namespaces
td;intt,a,n,k;boolflag;intmain(){sca
Daniel_1011
·
2024-02-05 00:34
c++
CF1538 补题报告
代码#includeusing
namespaces
td;intn,a[105],t,maxn=1,minna=1;int
Daniel_1011
·
2024-02-05 00:03
c++
笔记
Hbase数据结构和shell操作
命名空间:
NameSpaces
的作用Table:表,所有的表都是命名空间的成员,即表必属于某个命名空间,如果没有指定,则在default默认的命名空间中。
Dcl_Snow
·
2024-02-05 00:43
c++如何输出“Hello, world”
方法一#includeusing
namespaces
td;intmain(){coutusing
namespaces
td;intmain(){strings="Hello,world!"
Eric_David_King
·
2024-02-05 00:11
Rick
Astley
c++
开发语言
CodeForces - 447B DZY Loves Strings
#include#include#include#includeusing
namespaces
td;charch[1020];intw[27],k;intmain(){scanf("%s",ch);intlen
岛炎
·
2024-02-05 00:09
Codeforces
贪心
CodeForces 1300C Anu Has a Function
解题思路只有在某一位上有唯一的1才会对答案做出贡献,我们把所有的数字转化成二进制,然后遍历每一位上的1,剩下的直接随意输出就ok#include#include#includeusing
namespaces
td
一颗牙疼_
·
2024-02-05 00:38
cf
codeforces 1300E Water Balance
题目地址思维#include#definepkpush_backusing
namespaces
td;typedeflonglongll;doubledp[1000010],sum[1000010];intmain
'Profat
·
2024-02-05 00:38
数据结构
acm
c++
2022蓝桥杯C++刷题记录
#include#includeusing
namespaces
td;longlongN;//计算组合数longlongC(inta,intb){longlongsum=1;for(inti=a,j=1;
yyjshang
·
2024-02-04 23:57
Cpp
Learning
Road
c++
蓝桥杯
蓝桥杯真题刷题6.隔行变色
#includeusing
namespaces
td;intmain(){inta=0;intb=0;intcount=0;for(a=21;a<=50;a+=2){count++;}cout<
失落的香蕉
·
2024-02-04 22:56
c++
算法
开发语言
蓝桥杯真题刷题5.年龄问题
#includeusing
namespaces
td;intmain(){intm;for(ints=20;s<100;s++){m=2*(s-20)+20;if(m==1.5*s)cout<
失落的香蕉
·
2024-02-04 22:55
算法
c++
数据结构
蓝桥杯真题刷题7.三角形面积
#includeusing
namespaces
td;intmain(){//请在此输入您的代码cout<<8*8-8*2/2-8*4/2-4*6/2;return0;}
失落的香蕉
·
2024-02-04 22:55
算法
前端
javascript
蓝桥杯经典 年号字串
#includeusing
namespaces
td;intmain(){cout<<"
yf743909
·
2024-02-04 22:18
蓝桥杯
职场和发展
栈和队列的概念及常用接口
栈的图示stack常用接口作用:用于实现对栈的操作注:对容器进行操作时,都需要包含其相应头文件eg:#includeusing
namespaces
td;#includeintmain(){stacks;
*默~
·
2024-02-04 22:35
开发语言
c++
洛谷p1509 找啊找啊找GF
人品,人民币,所以用二维费用背包要求,泡最多的mm,和花费时间最少,所以需要有一个背包是时间,而很明显本题中物品是每个mm,所以用另一个背包存人数,判断是否需要转移ACcode#includeusing
namespaces
td
qustflypiggy
·
2024-02-04 22:28
背包专题训练
背包dp
动态规划
二维费用背包
洛谷p1455 搭配购买
=fy)pre[fx]=fy;}ACcode#includeusing
namespaces
td;constintM=1
qustflypiggy
·
2024-02-04 22:28
背包专题训练
01背包
并查集
背包dp
洛谷 P2370 P2370 yyy2015c01的U盘
www.luogu.org/problemnew/show/P2370二分+背包#include#include#include#include#include#include#includeusing
namespaces
td
weixin_30500473
·
2024-02-04 22:58
洛谷p2370 yyy2015c01的u盘
01背包加了一个排序题目链接ACcode#includeusing
namespaces
td;constintM=1e5+9;intdp[M],v[M],w[M];intmain(){ios::sync_with_stdio
qustflypiggy
·
2024-02-04 22:55
01背包
背包dp
背包问题
动态规划
OJ_二分查找
题干C++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusing
namespaces
td;intmain(){intn;scanf("
Listennnn
·
2024-02-04 22:51
数据结构与算法
算法
OJ_成绩排序2
题干c++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusing
namespaces
td;structstudent{charname
Listennnn
·
2024-02-04 22:50
数据结构与算法
算法
OJ_成绩排序
题干c++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusing
namespaces
td;structstudent{intid;intscore
Listennnn
·
2024-02-04 22:20
数据结构与算法
算法
OJ_找位置
题干代码#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusing
namespaces
td;intmain(){charstr
Listennnn
·
2024-02-04 22:50
数据结构与算法
算法
c语言
数据结构
DS二叉树——二叉树之父子结点
#includeusing
namespaces
td;queuefather;//开一个爸爸队列放爸爸classBiTreeNode{public:chardate;//节点数据BiTreeNode*leftchild
一燕不成夏+
·
2024-02-04 21:10
算法
数据结构
信息学奥赛一本通1332 参考代码
输入467输出11223344152631参考代码#includeusing
namespaces
td;intmain(){intn1,n2,s;cin>>
小马斯不定期
·
2024-02-04 21:59
c++
算法
数据结构
[NOIP2001 提高组] 数的划分
##输入格式$n,k$($6using
namespaces
td;inta,b,c;voiddfs(intx,inty,intz){if(z==b){if(y==a)c++;return
you0214
·
2024-02-04 21:56
深度优先
算法
图论
B2147 求 f(x,n)
##样例#1###样例输入#1```4.210```###样例输出#1```3.68```#includeusing
namespaces
td;intm
you0214
·
2024-02-04 21:26
算法
【2024.2.3练习】修剪灌木
我的代码#include#include#includeusing
namespaces
td;constintmax_n=10000;inttree[max_n];intmain(){
Run with the Wind
·
2024-02-04 21:37
练习日志
c++
学习
CSP-202305-2-矩阵运算
CSP-202305-2-矩阵运算:题目链接知识点一:申请矩阵1.动态分配//申请int**dynamicArray=newint*[rows];for(inti=0;iusing
namespaces
td
LOST P
·
2024-02-04 20:54
矩阵
线性代数
上一页
46
47
48
49
50
51
52
53
下一页
按字母分类:
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
其他