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
c++日常练习(13)-----数组加一
例如:输入digits=[1,2,3]输出:[1,2,4]输入digits=[4,3,2,1]输出:[4,3,2,2]提示:1usingname
spaces
td;#defineNUM10voidArr(
秘密之乡
·
2025-04-22 11:22
练习
c++
学习
PTA | 寻宝图
输入格式:输入第一行给出2个正整数N和M(1usingname
spaces
td;strings[100010];map>v;map
三流搬砖艺术家
·
2025-04-22 09:38
PTA
算法
数据结构
c++
动态规划
图论
Vs2019通过后台方式启动一个控制台程序(隐藏黑色窗口)
#include#include#include#includeusingname
spaces
td;#pragmacomment(linker,"/subsystem:\"windows\"/entry
systemyff
·
2025-04-22 07:56
杂谈
c++的特性之一 多继承
一个子类可以获取多个父类的属性和方法,从而组合不同父类的功能来创建更复杂的类格式:class派生类名称:继承方式1基类1,继承方式2基类2{派生类自己新增的特性};三姓家奴吕布#includeusingname
spaces
td
?!714
·
2025-04-22 06:22
c++
算法
开发语言
STL--手撕一个简单的vector
[]iterator_beginiterator_end下面的程序简单的实现了一个vector,只是简单的实现,并不涉及到一些高级功能,我们的模板如下#include#includeusingname
spaces
td
LyaJpunov
·
2025-04-21 17:37
c++
c++
开发语言
算法
dijkstra(堆优化)算法代码+理解
###堆优化使用情况(n和m一个级别的时候)```#include#definePIIpair//first存距离,second存起点usingname
spaces
td;constintN=5e5+10
Myq70111
·
2025-04-21 16:03
算法
图论
为什么将 Redux 替换为 GraphQL 是个好主意?
题解|#点和圆的关系#1题解|#点击消除##includeusingname
spaces
td;intm饿了么二面4.23介绍部门业务自我介绍数据库怎么设计的如果增加一个好友功能,这个表怎么设计如果说用户查询过慢怎么解决
2301_78234743
·
2025-04-21 15:30
java
Opencv鼠标回调函数[SetMouseCallBack]
#include#includeusingname
spaces
td;usingnamespacecv;Matimg;voidonMouse(intevent,intx,inty,intflags,void
NCUTer
·
2025-04-21 15:30
OpenCV
C++
opencv
计算机视觉
c++
C++:namespace命名空间详解
#includeusingname
spaces
td;//定义两个全局变量var01、var02intvar01=1;intvar02=2;//定义命名空间AnamespaceA{intvar01=10;
青瓦松
·
2025-04-21 14:25
C++入门
c++
数据结构习题:栈-车厢调度
02栈的应用:车厢调度就是将SSHSHS这种字符串通过栈来排序程S前H后#includeusingname
spaces
td;constintMax=10;structStack{chardata[Max
Sc Turing
·
2025-04-21 01:36
数据结构
c++
算法
整人小代码,无毒无害
#include#includeusingname
spaces
td;intmain(){inta,b,c,d,e,f,g;cout>a;cout>b;system("colorC4");cout>c;cout
一个普普通通的Windows11
·
2025-04-20 23:24
c++
算法
数据结构-栈-代码实现
#include#includeusingname
spaces
td;template#defineMAXSIZE100classStack{private:Tarr[MAXSIZE];inttop;public
肖晶雄
·
2025-04-20 20:04
数据结构
c++
算法
c++ 游戏_恶魔轮盘赌
代码#include#include#include#include#include#definerandom(a,b)(rand()%(b-a+1)+a)usingname
spaces
td;inta1
༺ཌༀ 吃菠萝的小狼 ༀད༻
·
2025-04-20 19:27
c++
游戏
开发语言
数据结构
算法
图论
C++ 栈
理论原理:顺序栈代码实现:#include#includeusingname
spaces
td;#defineMAX10templatestructStack{Tdata[MAX];intsize;Stack
漂流的方舟
·
2025-04-20 15:08
C++数据结构与算法
c++
算法
开发语言
c++自定义栈
#includeusingname
spaces
td;templateclassMyStack{public:MyStack(intsize);//初始化是要指定stack的大小~MyStack();boolisEmpty
赵燕玲是我对象
·
2025-04-20 15:37
算法练习
C++
模板类
动态数组
栈
数据结构
cmake使用教程
示例:示例基础编译流程先建立一个项目文件夹project1,在文件夹里面建立一个名为helloSLAM.cpp的文件://helloSLAM.cpp#includeusingname
spaces
t
四夕小一冰
·
2025-04-20 11:08
cmake相关
c++
天梯赛DP汇总
出的貌似比较少,在前面的题中(L1,L2,L3中的1,2题)涉及到的有一定思维量但是也不是特别难,仔细想想还是可以做的1.记忆化搜索:PTA|程序设计类实验辅助教学平台AC代码:#includeusingname
spaces
td
CoCoa-Ck
·
2025-04-20 11:37
深度优先
图论
算法
天梯赛数据结构合集
1.集合操作:PTA|程序设计类实验辅助教学平台主要是注意set的取交集操作,AC代码:#includeusingname
spaces
td;intn,m,k;seta[60];intmain(){cin
CoCoa-Ck
·
2025-04-20 10:34
数据结构
算法
c++
[AtCoder-nikkei2019_2_qual_d] Shortest Path on a Line
#include#include#include#include#include#defineintlonglongusingname
spaces
td;typedefpairpii;con
Windsight
·
2025-04-20 10:30
图论
算法
【BZOJ】1419 Red is Good
]表示开一局i红j黑的游戏的期望收益,然后f[i][j]可以由f[i-1][j]和f[i][j-1]转移要滚动#include#include#definecintconstint&usingname
spaces
Pure_W
·
2025-04-20 08:47
BZOJ
C++ std::thread 线程创建和启动
02使用方法std::thread使用很方便,以下是一个简单的示例代码:#include#includevoidmyTask(intid){std::cout#includeusingname
spaces
td
爱C++的小笨
·
2025-04-20 08:17
c++
C++基础_1
第一个C++程序:①创建项目,②创建文件,③编写代码,④运行程序注释:单行注释://,多行注释:/**/helloworld程序:#includeusingname
spaces
td;intmain(){
牛+马=我
·
2025-04-20 06:04
C++基础
c++
visual
studio
code
题解|查找字符串中逗号次数(length, replace)
题解|#整数奇偶排序#重写CMP函数#includeusingname
spaces
td;鼠鼠回来java开发面试啦,云智一面(服务架构部)刚开始是闲聊部分,自我介绍,加询问项目的来源。
han_xue_feng
·
2025-04-20 06:02
java
C++一些细碎知识点(1)
#和##1.1#把参数转换为字符串#include#include#includeusingname
spaces
td;#defineT(A)#A#defineTEST(X)printf(#X);#defineTEST1
Guqing_f
·
2025-04-20 06:02
C++
c++
开发语言
笔记
1024程序员节
c语言
vim
visual
studio
云服务器上配置Mamba环境
在云服务器上配置Mamba环境1.查看Mamba的要求论文链接:Mamba:Linear-TimeSequenceModelingwithSelectiveState
Spaces
GitHub地址:MambaGitHub
Ambition_LAO
·
2025-04-20 05:55
深度学习
机器学习
关于动态(长度不定)结构体数组的两种处理方法
#includeusingname
spaces
td;structstudent{intge;intgi;intb[6]={0};};intmain(){structstudent*stu;intn,m,
大河大江
·
2025-04-20 03:42
C
C++基础
数据结构与算法基础
c++
【PTA/C++】继承与派生
程序填空题R5-1阅读下面的程序,完成其中复制构造函数的代码#includeusingname
spaces
td;classCAT{public:CAT();CAT(constCAT&);~CAT();intGetAge
小鱼984
·
2025-04-19 23:19
c++
算法
开发语言
有多少种信仰
样例输入110423454858样例输出17提示数据范围与提示0usingname
spaces
td;longlongn,k,a,b,q,f[50000],maxn,m
mega裂空座
·
2025-04-19 20:59
算法
c++
数据结构
L2-052 吉利矩阵(奇异搞笑暴力+猜样例打表AC)
题面在此#includeusingname
spaces
td;intl,n;intmain(){ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);cin>>l>
迷你世界花小楼
·
2025-04-19 17:34
矩阵
c++
算法
吉利矩阵(DFS)
思路:统计方法数,且数据不大,所以可以考虑DFS细节:if(x==n-1&&sy[y]+iusingname
spaces
td;#defineintlonglongconstintN=9;intans=0
YYJ333_333
·
2025-04-19 17:33
矩阵
算法
线性代数
【大厂笔试题】携程 2025.4.15
第一行输入一个整数T(1usingname
spaces
td;stringdedup(conststring&s){unordered_setseen;string
PXM的算法星球
·
2025-04-19 15:56
大厂面试题
c++
http://noi.openjudge.cn/_4.3算法之图论_1526:宗教信仰
你的学校有n名学生(0usingname
spaces
td;intf[50000],//信仰什么宗教的学生群体的代表是谁s[50000];//该群体的人数intn,//几个学生m,//几对学生的宗教信仰一样
adam_life
·
2025-04-19 15:55
并查集
递归
2358 - A+B 问题
#include#include#includeusingname
spaces
td;intmain(){longlong
寒燕舞
·
2025-04-19 12:35
算法
1月24日
pta27#includeusingname
spaces
td;intmain(){chara[11];intb[10]={0};for(inti=0;i>a[i];b[a[i]-'0']++;}intc
吹风看太阳
·
2025-04-19 10:52
算法
c++
数据结构
4.18日学习--引用
#includeusingname
spaces
td;//引用做函数的返回值//1、不要返回局部变量的引用int&test01(){inta=10;//局部变量存放在四区中的栈区returna;}//2、
2501_90399788
·
2025-04-19 06:26
学习
c++
算法
C++值传递和引用传递
值传递和引用传递系列文章目录1、值传递2、引用传递3、常量引用传递4、值传递vs引用传递总结1、值传递值传递会复制传入的参数,函数内部对参数的修改不会影响原始数据#include#includeusingname
spaces
td
大佛拈花
·
2025-04-19 05:47
c++
算法
开发语言
k8s报错kubelet.go:2461] “Error getting node“ err=“node \“k8s-master\“ not found“
问题首先最初问题:[root@k8s-master~]#kubectlgetpods-owide--all-name
spaces
Theconnectiontotheserver192.168.2.129
yoke菜籽
·
2025-04-18 16:28
一直拥有的BUG
kubernetes
kubelet
golang
代码随想录训练营day37|52. 携带研究材料,518.零钱兑换II,377. 组合总和 Ⅳ,70. 爬楼梯
所以这里能多次放物体只需要把遍历顺序改改就好了#include#includeusingname
spaces
td;intmain(){intn,m;cin>>n>>m;std::vectorweight
wwwgxd
·
2025-04-18 07:22
算法
c++
动态规划
程序设计算法竞赛基础——练习3解题报告
1001AstrangeliftProblemDescriptionThereisastrangelift.Theliftcanstopcanateveryfloorasyouwant,andthereisanumberKi(0usingname
spaces
td
nayix
·
2025-04-18 04:05
练习
ACM
练习
搜索
DFS
BFS
L1-6 吉老师的回归
L1-6吉老师的回归链接这道题写的时候想的就是暴力for循环(wa了一个点)考试之后讲题的时学后find函数find会返回匹配字符串的第一个位置代码:#includeusingname
spaces
td;
日常懵
·
2025-04-18 03:28
编程日志4.15
1.多态的语法#includeusingname
spaces
td;classAnimal{public:virtualvoideat(){//引入虚函数virtual子类输出couttest->eat-
牛牛程序员成长日记
·
2025-04-18 01:14
c++
算法
开发语言
拓扑排序--家谱树
https://www.luogu.com.cn/problem/B3644拓扑排序,入度为0入队然后出队更新出度对应点的入度,重复入队出队#include#includeusingname
spaces
td
泛舟起晶浪
·
2025-04-17 23:02
算法
c++
数据结构
数字统计 题解(c++)
咚咚————最后,你的代码一定是这样:#includeusingname
spaces
td;intd,n;intto
mmz1207
·
2025-04-17 12:24
c++
c语言
NO.95十六届蓝桥杯备战|图论基础-单源最短路|负环|BF判断负环|SPFA判断负环|邮递员送信|采购特价产品|拉近距离|最短路计数(C++)
#includeusingname
spaces
td;constintN=2e3+10,M=3e3+10;intn,m;intpos;structnode{intu,v,w;}e[M*2];intdist
ChoSeitaku
·
2025-04-17 09:35
蓝桥杯备考
蓝桥杯
图论
c++
蓝桥杯真题-路径之谜
#includeusingname
spaces
td;#include#include#include#includeintN;vectornorth1(20,0);vectorwest1(20,0);vectorresult
m0_74125600
·
2025-04-17 02:15
蓝桥杯
图论
算法
c++
dfs
路径之谜
剪枝
第16届蓝桥杯c++研究生组题解
洛谷题解直接计算每个数字的数位和,对数位和是5的倍数的进行统计即可答案40500代码#include#definelllonglong#definepiipair#defineendl'\n'usingname
spaces
td
_Mascarpone_
·
2025-04-17 01:11
蓝桥杯
c++
算法
动态规划
数据结构
深度优先
Codeforces Round 998 (Div. 3) C~E
若他们选的数的和为k则得分+1,alice想最小化得分,bob最大得分算法:模拟思路:最终的数对是由bob决定的alice的决定并不影响结果,统计数组中相加为k的数对即可代码:#includeusingname
spaces
td
小乐xiaole
·
2025-04-17 00:03
算法
数据结构
贪心算法
排序算法
线性回归
c++
第十四届蓝桥杯省赛C++组真题及题解
代码如下:#includeusingname
spaces
td;inta[110]={0,5,6,8,6,9,1,6,1,2,4,9,1,9,8,2,3,6,4,7,7,5,9,5,0,3,8,7,5,8,1,5,8,6,1,8,3,0,3,7,9,2,7,0,5,8,8,5,7,0,9,9,1,9
2301_81081517
·
2025-04-16 23:01
蓝桥杯
c++
职场和发展
蓝桥杯 2025 C++组 省 B 题解
.-101...x-3x-2x-1x除了x,x以前的数都会被负数抵消#include#definelllonglonglla[100005];usingname
spaces
td;intmain(){ios
小乐xiaole
·
2025-04-16 23:00
蓝桥杯
c++
深度优先
Python
print(message_string)VariablesVariablescan’thave
spaces
orsymbolsintheirnamesotherthananunderscore(_).Th
Alice
·
2025-04-16 16:11
python
开发语言
上一页
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
其他