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
spaces
算法.线性dp2
#includeusingname
spaces
td;constintN=1010;intn,m;intf[N],a[N];intmain(){cin>>n;for(inti=1;i>a[i];for(inti
丰海洋
·
2024-02-05 07:55
算法
算法
c++
数据结构
算法.线性dp
#includeusingname
spaces
td;constintN=510;intn,m;intf[N][N],w[N][N];intmain(){cin>>n;for(inti=1;i>w[i][
丰海洋
·
2024-02-05 07:25
算法
算法
c++
数据结构
基础算法bfs -剪枝问题
每个测试中,第1行输入整数N,M,T(1usingname
spaces
td;charmat[8][8],visit[8][8];intn,m,t;int
可以输出hello了
·
2024-02-05 07:54
算法
宽度优先
剪枝
opencv学习记录——(15)模板匹配
一、单模板匹配#include"opencv2/opencv.hpp"#includeusingname
spaces
td;usingnamespacecv;voidmain(){///单模板匹配Mattemp
蜡笔小新qqq
·
2024-02-05 06:34
opencv
学习
计算机视觉
P8711 [蓝桥杯 2020 省 B1] 整除序列--2024冲刺蓝桥杯省一
点击跳转例题模拟即可#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128usingname
spaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:27
蓝桥杯
职场和发展
P8717 [蓝桥杯 2020 省 AB2] 成绩分析--2024冲刺蓝桥杯省一
就是模拟即可一些注意事项在代码中#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128usingname
spaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:57
蓝桥杯
职场和发展
数据结构
c++
算法
P8761 [蓝桥杯 2021 国 BC] 大写--2024蓝桥杯冲刺省一
#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128usingname
spaces
td;constintN
一只蓝色小鲨鱼
·
2024-02-05 06:57
蓝桥杯
职场和发展
c++
算法
数据结构
P8722 [蓝桥杯 2020 省 AB3] 日期识别--2024蓝桥杯冲刺省一
字符串总结注意事项在代码中#include#defineintlonglong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128usingname
spaces
td
一只蓝色小鲨鱼
·
2024-02-05 06:51
蓝桥杯
职场和发展
数据结构
c++
算法
1836:【04NOIP提高组】合并果子(三种做法)
代码:#includeusingname
spaces
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模板题)
题目思路一道模板题,没啥好说的,直接见代码代码#includeusingname
spaces
td;intn,q,a,to[100001][22],b,deep[100001],c,t[1000001];
伟大的拜线段树jjh
·
2024-02-05 05:08
深度优先
算法
图论
回顾 | Pre VS Code Day - 用 GitHub Code
spaces
构建 OpenAI 应用实战
继GitHubCode
spaces
和GitHubCopilot扩展接
MicrosoftReactor
·
2024-02-05 05:02
github
人工智能
STL初识,for_each
容器嵌套容器1.STL初识1.stl的诞生2.stl基本概念3.stl六大组件4.stl中容器,算法,迭代器2.vectorfor_eachfor_each实质如图代码示例:#includeusingname
spaces
td
柏箱
·
2024-02-05 05:32
c++
开发语言
stl
vector
for_each
http服务器实现
#include#include#include#pragmacomment(lib,"ws2_32.lib")usingname
spaces
td;unsignedinti=0;constunsignedintMAXCNT
你好!蒋韦杰-(烟雨平生)
·
2024-02-05 05:45
http
服务器
c++
c语言
C++类和对象的属性
防止误操作#includeusingname
spaces
td;structPoint{intx;inty;};intmain(){//const修饰指针,指向的对象不能通过该指针被修改constPoint
A small mouse
·
2024-02-05 04:04
c++
开发语言
C/C++指针深析
所以这里辨析了各种指针类型,实践出真知,下面的例子如果自己敲下来就更好了const修饰指针#includeusingname
spaces
td;classRectangle{public:Rectangle
A small mouse
·
2024-02-05 04:03
c++
c++
c语言
算法
备战蓝桥杯---搜索(优化1)
显然,我们可以用BFS解决,具体实现与八数码类似:下面是代码:#includeusingname
spaces
td;#defineN3000000stringa,b;inthh,dis[N],cnt;structnode
cocoack
·
2024-02-05 04:47
蓝桥杯
算法
宽度优先
剪枝
备战蓝桥杯---搜索(应用基础1)
下面是AC代码:#includeusingname
spaces
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#includeusingname
spaces
td
风静如云
·
2024-02-05 03:04
C/C++
c++
开发语言
C++:通过count和find判断vector中是否包含某个数据
vector本身没有提供可以检测某个数据是否在其中的成员方法,可以使用泛型方法count和find进行检查:#include#include#includeusingname
spaces
td;intmain
风静如云
·
2024-02-05 03:00
C/C++
c++
2022ccpc女生赛+补题
代码:#include#definelllonglongconstintmaxn=1e6+10;usingname
spaces
td;intn,k;llmaxx=-1,mt;inta[maxn]={0};
cbx-zzz
·
2024-02-05 03:00
codeforces
ccpc
算法
c++
数据结构
2021ccpc女生赛+补题
代码:#include#definelllonglongconstintmaxn=2e5+10;usingname
spaces
td;inta[maxn],res[m
cbx-zzz
·
2024-02-05 03:59
ccpc
codeforces
算法
c++
数据结构
756. 蛇形矩阵
//#include#includeusingname
spaces
td;con
某翁
·
2024-02-05 02:41
CF1643补题记录
B和上海那题异曲同工的构造题补图真是个好东西#includeusingname
spaces
td;typedeflonglongll;constintN=55;intt,n;inta[N];intmain
whtfffffff
·
2024-02-05 01:39
CF
CF 775 Div2 补题
#include#includeusingname
spaces
td;
lqrs
·
2024-02-05 01:36
codefoeces
c++
CF1624 补题报告
Div.3)补题报告(A~E)A.PlusOneontheSubsetA.子集上的加一题意可对给定序列的子串进行加一的操作,使所有元素相等思路求序列最大值与最小值的差代码#includeusingname
spaces
td
Daniel_1011
·
2024-02-05 00:35
c++
笔记
欧拉函数 笔记
复习:欧拉筛intcnt,prime[10000005],n;boolvis[100000005];voidolaprime(){vis[1]=1;for(inti=2;iusingname
spaces
td
Daniel_1011
·
2024-02-05 00:04
笔记
周赛和cf补题
#include#include#include#include#include#includetypedeflonglongll;usingname
spaces
td;lln,l;lla[200005]
Vision_1
·
2024-02-05 00:34
c++
算法
c语言
CF1878 补题报告
思路判断输入的a[i]中是否有值为k的数即可代码#includeusingname
spaces
td;intt,a,n,k;boolflag;intmain(){sca
Daniel_1011
·
2024-02-05 00:34
c++
CF1538 补题报告
代码#includeusingname
spaces
td;intn,a[105],t,maxn=1,minna=1;int
Daniel_1011
·
2024-02-05 00:03
c++
笔记
Hbase数据结构和shell操作
命名空间:Name
Spaces
的作用Table:表,所有的表都是命名空间的成员,即表必属于某个命名空间,如果没有指定,则在default默认的命名空间中。
Dcl_Snow
·
2024-02-05 00:43
c++如何输出“Hello, world”
方法一#includeusingname
spaces
td;intmain(){coutusingname
spaces
td;intmain(){strings="Hello,world!"
Eric_David_King
·
2024-02-05 00:11
Rick
Astley
c++
开发语言
CodeForces - 447B DZY Loves Strings
#include#include#include#includeusingname
spaces
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#includeusingname
spaces
td
一颗牙疼_
·
2024-02-05 00:38
cf
Codeforces Round 1300 D Aerodynamic(思维+中学数学)
D.Aerodynamictimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputGuy-ManuelandThomasaregoingtobuildapolygon
spaces
hip.You
Huffman_Tree_
·
2024-02-05 00:38
CodeBlocks
codeforces 1300E Water Balance
题目地址思维#include#definepkpush_backusingname
spaces
td;typedeflonglongll;doubledp[1000010],sum[1000010];intmain
'Profat
·
2024-02-05 00:38
数据结构
acm
c++
2022蓝桥杯C++刷题记录
#include#includeusingname
spaces
td;longlongN;//计算组合数longlongC(inta,intb){longlongsum=1;for(inti=a,j=1;
yyjshang
·
2024-02-04 23:57
Cpp
Learning
Road
c++
蓝桥杯
蓝桥杯真题刷题6.隔行变色
#includeusingname
spaces
td;intmain(){inta=0;intb=0;intcount=0;for(a=21;a<=50;a+=2){count++;}cout<
失落的香蕉
·
2024-02-04 22:56
c++
算法
开发语言
蓝桥杯真题刷题5.年龄问题
#includeusingname
spaces
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.三角形面积
#includeusingname
spaces
td;intmain(){//请在此输入您的代码cout<<8*8-8*2/2-8*4/2-4*6/2;return0;}
失落的香蕉
·
2024-02-04 22:55
算法
前端
javascript
蓝桥杯经典 年号字串
#includeusingname
spaces
td;intmain(){cout<<"
yf743909
·
2024-02-04 22:18
蓝桥杯
职场和发展
栈和队列的概念及常用接口
栈的图示stack常用接口作用:用于实现对栈的操作注:对容器进行操作时,都需要包含其相应头文件eg:#includeusingname
spaces
td;#includeintmain(){stacks;
*默~
·
2024-02-04 22:35
开发语言
c++
洛谷p1509 找啊找啊找GF
人民币,所以用二维费用背包要求,泡最多的mm,和花费时间最少,所以需要有一个背包是时间,而很明显本题中物品是每个mm,所以用另一个背包存人数,判断是否需要转移ACcode#includeusingname
spaces
td
qustflypiggy
·
2024-02-04 22:28
背包专题训练
背包dp
动态规划
二维费用背包
洛谷p1455 搭配购买
=fy)pre[fx]=fy;}ACcode#includeusingname
spaces
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#includeusingname
spaces
td
weixin_30500473
·
2024-02-04 22:58
洛谷p2370 yyy2015c01的u盘
01背包加了一个排序题目链接ACcode#includeusingname
spaces
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#includeusingname
spaces
td;intmain(){intn;scanf("
Listennnn
·
2024-02-04 22:51
数据结构与算法
算法
OJ_成绩排序2
题干c++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;structstudent{charname
Listennnn
·
2024-02-04 22:50
数据结构与算法
算法
OJ_成绩排序
题干c++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;structstudent{intid;intscore
Listennnn
·
2024-02-04 22:20
数据结构与算法
算法
OJ_找位置
题干代码#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusingname
spaces
td;intmain(){charstr
Listennnn
·
2024-02-04 22:50
数据结构与算法
算法
c语言
数据结构
DS二叉树——二叉树之父子结点
#includeusingname
spaces
td;queuefather;//开一个爸爸队列放爸爸classBiTreeNode{public:chardate;//节点数据BiTreeNode*leftchild
一燕不成夏+
·
2024-02-04 21:10
算法
数据结构
上一页
48
49
50
51
52
53
54
55
下一页
按字母分类:
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
其他