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
C++:vector容器
使用方法和一些注意如下:#include#includeusing
namespaces
td;intmain(){vectorvec={'a','b','c','d'};vec[4]='e';//不能以此方法扩容
学习使我变快乐
·
2025-05-23 06:55
c++
开发语言
⚡ Linux Debian 安装与配置 Docker
Docker利用了Linux的容器技术(
Namespaces
和Cgroups)来实现资源隔离,它相比传统虚拟机更轻量、更高效。
aitav0
·
2025-05-23 00:51
Linux玩家
linux
debian
docker
全面学习c++类与对象(中)(非常重要)(析构构造拷贝函数赋值运算符重载等等)
classDate{};构造函数给出如下类#includeusing
namespaces
td;c
爱吃生蚝的于勒
·
2025-05-22 22:36
c++成长之路
学习
c++
java
数据结构
c语言
开发语言
linux
【次短路】
题目链接:洛谷:P2865[USACO06NOV]RoadblocksG-洛谷AC代码(dijkstra)#include#include#include#includeusing
namespaces
td
cc,cccc
·
2025-05-22 21:03
c++
图搜索算法
【基础】三角形的个数
#includeusing
namespaces
td;intmain(){intl;cin>>l;intk;intsum=0;for(inti=1;ik&&abs(i-j)=j){sum++;}}}coutusing
namespaces
td
摄殓永恒
·
2025-05-22 20:28
算法
c++
数据结构
C++获取程序内存占用
C++获取程序内存占用windows中获取内存占用#include#include#pragmacomment(lib,"psapi.lib")#include#includeusing
namespaces
td
烨然若神人~
·
2025-05-22 16:06
c++
windows使用
运维
c++
开发语言
编程日志5.15
哈希表的基础算法#includeusing
namespaces
td;//哈希表结点类定义//这段代码定义了一个名为HashNode的模板类,用于哈希表中的结点,其中每个结点存储一个键值对。
牛牛程序员成长日记
·
2025-05-22 14:54
哈希算法
算法
c++
弹弹乐c++小游戏
#include#include#include#include#includeusing
namespaces
td;constdoublepi=3.1415926536;inttoint(floata)
爱玩火影的村里人
·
2025-05-22 12:38
c
AtCoder Beginner Contest 354(ABC 354) A-F题解
LISLISLIS板子题比赛链接A.A.A.传送门题意:code:code:code:#include#include#include#include#include#defineintlonglongusing
namespaces
td
QianK.
·
2025-05-22 08:43
ABC
算法
数据结构
AT_abc354_a [ABC354A] Exponential Plant 题解
A题还是简单的代码#include#defineintlonglongusing
namespaces
td;intn,day=1,num=1;signedmain(){cin>>n;while
lhschris
·
2025-05-22 08:42
题解
AT_abc354_b [ABC354B] AtCoder Janken 2 题解
代码#include#defineintlonglongusing
namespaces
td;constintN=1e5+140;intn;stringa[N];intnum;boolcmp(stringx
lhschris
·
2025-05-22 08:42
算法
题解
[ABC354D] AtCoder Wallpaper
[题目通道]([ABC354D]AtCoderWallpaper-洛谷)简单大模拟#includeusing
namespaces
td;#defineintlonglonginta,b,c,d;intarea
「已注销」
·
2025-05-22 08:39
c++
算法
数据结构
再探记忆化(深度解析)——洛谷P1434
1.代码#includeusing
namespaces
td;intm,n,ans,a[110][110],s[110][110];intdfs(intx,inty){intk;inttx,ty;intnext
空雲.
·
2025-05-22 08:39
算法
深度优先
图论
C++基础,删除指定文件夹以及文件夹下的所有文件
/*删除指定目录以及目录下的所有文件*/#include#include#includeusing
namespaces
td;voidlistFiles(stringdir);intmain(){//目录路径
273992029
·
2025-05-22 02:30
c++
开发语言
黑马程序员C++2024新版笔记 第4章 函数和结构体
intage;stringgender;}结构体的声明定义和使用的基本语法:struct结构体类型{成员1类型成员1名称;···成员n类型成员n名称;};结构体定义和访问成员练习:#includeusing
namespaces
td
小葡萄2025
·
2025-05-21 21:53
c++20
笔记
P1208 [USACO1.3] 混合牛奶 Mixing Milk
#includeusing
namespaces
td;intn,m;longlongsum;structss{intx;inty;}a[5005];boolcmp(ssa,ssb){if(a.x!
C++chaofan
·
2025-05-21 14:14
算法
c++
数据结构
数据结构测试模拟题(1)
1、约瑟夫问题#includeusing
namespaces
td;constintN=25;inte[N],ne[N],head=-1,idx=1;intn,m;voidadd_to_head(intx
@我漫长的孤独流浪
·
2025-05-21 12:25
算法
c++
数据结构
c++中for_each用法简单概述
vector容器中for_each遍历算法:for_each(v.begin(),v.end(),MyPrint);voidMyPrint(intval){cout#include#includeusing
namespaces
td
kaiaaaa
·
2025-05-21 11:46
c++
梦熊解析:202505基础算法
示例:若n=5,答案为14若n=8,答案为44Code:#includeusing
namespaces
td;#definesc(x)sca
C-DHEnry
·
2025-05-21 06:49
算法
图论
蓝桥杯——最小字符串
样例输入13abc样例输出abc数据规模和约定Tusing
namespaces
td;boolcmp(strings1,str
JessieXu.
·
2025-05-21 03:01
蓝桥杯C++题解
蓝桥杯
算法
c++
蓝桥杯—算法提高—最小字符串
因为贪心还没遇到过,所以参考了一下别人的代码:#include#include#include#includeusing
namespaces
td;boolcmp(stringa,stringb){strin
追求决定高度
·
2025-05-21 03:00
算法
c++
数据结构
2024蓝桥杯国赛C++B组题解(9/10)
注意到数据范围为n#includeusing
namespaces
t
不要徘徊不前
·
2025-05-21 03:59
算法
蓝桥杯
算法回溯法-0-1背包c++
//思路差异://解为子集树:maxvule,则可以进入由结点////#include#includeusing
namespaces
td;classKnap{public:voidBacktrack(inti
王安安的记录
·
2025-05-20 22:51
回溯法
算法
c++
算法
C++回溯法求0-1背包问题
#include#include#defineN4using
namespaces
td;intc=7,w[N+1]={0,3,5,2,1},p
爱编程的小威
·
2025-05-20 21:51
蓝桥杯
c++
数据结构
算法-数对的使用
1、数对可用于数组排序中,并且可记忆化排序前的元素下标#include#include#includeusing
namespaces
td;typedeflonglongll;constintN=2e5+
cx_2023
·
2025-05-20 19:37
算法
c++
C++编程起步项目
员工信息管理系统需求Employee.h#pragmaonce#include#includeusing
namespaces
td;classEmployee{public:intid;//编号stringname
zhangpeng455547940
·
2025-05-20 13:02
软件工程/架构
c++
前端
开发语言
代码随想录算法训练营Day51
代码随想录#include#includeusing
namespaces
td;intdir[4][2]={0,1,1,0,-1,0,0,-1};//四个方向voiddfs(constvector>&grid
敲代码直到秃头
·
2025-05-20 13:29
算法训练营
算法
深度优先
C++--综合应用-演讲比赛项目
每轮比赛后需要统计每个学生的胜场,以便决定进入下一轮和最终胜利的学生代码实现#pragmaonce#include#include#include#include#include#includeusing
namespaces
td
zhangpeng455547940
·
2025-05-20 12:58
软件工程/架构
c++
算法
开发语言
atcoder C - ~
/abc406_c题目简述:给定一个序列p,让你求出p的所有子序列中波浪形序列的个数波浪形序列的定义:1:长度>=4;2:仅存在一个波峰和波谷;3:序列的第一个数小于第二个数#includeusing
namespaces
td
飞天狗111
·
2025-05-20 11:47
枚举
算法
c++
梦熊联盟:202505基础语法-题解
Code:#includeusing
namespaces
td;longlongans;intma
C-DHEnry
·
2025-05-20 03:25
算法
c++
开发语言
金色传说 Gym - 102174J (dp)
题目https://cn.vjudge.net/problem/Gym-102174J题意中文题思路dp#include#includeusing
namespaces
td;typedeflonglongll
七九河开
·
2025-05-20 00:01
C++常见面试题 ——虚函数
#includeusing
namespaces
td;//基类classBase{public:Base()=default;virtualvoidprint(){coutprint();}intmain
星晴还不错
·
2025-05-19 19:27
c++
面试
Boring Counting (2013山东省赛)(划分树+二分)
#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusing
namespaces
td;#defineMAX100050#definem
jason_star
·
2025-05-19 19:57
划分树
HDU 3518 Boring counting(后缀数组)
题意:求出不重叠切出现次数超过两次的子串个数题解:后缀数组分组后,判断每组出现的sa最大值和最小值之差是否是大于k就好了,k通过枚举即可AC代码:#includeusing
namespaces
td;constintINF
Nightmare丶
·
2025-05-19 19:55
SA
SA
Docker 核心原理详解:
Namespaces
与 Cgroups 如何实现资源隔离与限制
然而,Docker容器的神奇之处并非“无中生有”,其背后是Linux内核的两大核心技术——
Namespaces
(命名空间)和Cgroups(控制组)。
you的日常
·
2025-05-19 13:23
容器技术
docker
容器
运维
不要三个一
#includeusing
namespaces
td;intmain(){intn,m;cin>>n>>m;for(inti=1;i0&&i%3){coutusing
namespaces
td;intmain
摄殓永恒
·
2025-05-19 12:13
算法
c++
数据结构
详解初始化列表
#define_CRT_SECURE_NO_WARNINGS1#includeusing
namespaces
td;classDate{public:Date(int_year=2025,int_month
火山灿火山
·
2025-05-19 03:12
c++
校园网--tarjan求缩点的两个经典问题
1.入度为0点通知全部2.DAG变SCC,别忘了特判称环的情况P2746[USACO5.3]校园网NetworkofSchools-洛谷#includeusing
namespaces
td;#defineN100011typedeflonglongll
泛舟起晶浪
·
2025-05-19 01:32
算法
c++
图论
生命之树--树形dp
1.树形dp--在dfs遍历树的同时dp,从上到下递归,到叶子是边界条件https://www.luogu.com.cn/problem/P8625#includeusing
namespaces
td;#
泛舟起晶浪
·
2025-05-19 01:32
算法
密文搜索-map容器+substr
因为密码是打乱顺序的,所以只要字母个数对上就行///用map存字母种类和个数///vector存每行密码///不用set,每行独立再考察一个字符串分割函数substr,map自动比较#includeusing
namespaces
td
泛舟起晶浪
·
2025-05-19 01:32
c++
C++:函数模板
#includeusing
namespaces
td;//以往我们要输出三个类型的变量时//voidShow(inta)//{//coutvoidShow(Ta){coutusing
namespaces
td
学习使我变快乐
·
2025-05-18 17:36
c++
算法
开发语言
算法:分治法寻找众数
#includeusing
namespaces
td;voidQuick_Sort(int*a,intbegin,intend){if(begin>end)return;inttmp=a[begin];inti
Eaton_chen
·
2025-05-18 16:29
算法
快速排序
数组
众数
C++
算法
c++ 运算符重载
头文件MyVec.h:#pragmaonce#includeusing
namespaces
td;//我的二维向量,测试运算符重载classMyVec{private:intx,y;public:MyVec
zh_xuan
·
2025-05-18 09:39
c/c++
c++
开发语言
第十四届蓝桥杯省赛C++B组题解
考点暴力枚举,搜索,数学,二分,前缀和,简单DP,优先队列,链表,LCA,树上差分A日期统计暴力枚举:#includeusing
namespaces
td;intb[]={0,31,28,31,30,31,30,31,31,30,31,30,31
joesx
·
2025-05-18 04:03
竞赛专区
蓝桥杯
c++
算法
深度优先
链表
数据结构
C++每日一题(5.17)
代码#includeusing
namespaces
td;intmain(){for(inta=100;a<=999;a++){ intx,
山不让尘..
·
2025-05-18 00:35
c++
开发语言
网易笔试——算法笔试真题
每个人的难度为各相邻元素之和,求两个人的最小难度和5.给定一堆点,求画两条互相垂直的线,最多能覆盖多少点1.题意:在s串中连续的子串有多少个题解:枚举#include#include#includeusing
namespaces
td
fpga和matlab
·
2025-05-17 23:31
★求职2:大厂笔试面试总结
数据结构
网易面试
网易笔试
编程日志5.10
二叉搜索树的基础代码#includeusing
namespaces
td;//二叉搜索树节点定义templatestructTreeNode{Tval;//一个类型为T的成员变量val,用于存储树节点的值
牛牛程序员成长日记
·
2025-05-17 20:09
c++
算法
开发语言
AtCoder 第405场初级竞赛 A~E题解
【难度】GESP一级【代码参考】#includeusing
namespaces
td;intmain(){intr,x;cin>>r>>x;if(x==1){if(r>=1
是帅帅的少年
·
2025-05-17 16:36
青少年编程比赛题解
算法
c++
AtCoder
数据结构
C++[错误] no match for ‘operator<<‘ (operand types are ‘std::basic_ostream<char>‘ and ‘void‘)
C++[错误]使用Markdown记录错误插入代码片使用Markdown记录错误错误名称:nomatchfor‘operatorusing
namespaces
td;#includeclassSClass
遥遥领先zzl
·
2025-05-17 09:14
c++
开发语言
密码学习题--仿射变换cpp代码实现
密码学习题–仿射变换cpp代码实现#includeusing
namespaces
td;intmod(intnum,intm){while(num<0)num+=m;inttmp=num/m;returnnum-tmp
lllzy_vx
·
2025-05-17 05:50
加解密的代码实现
学习ing
密码学
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
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
其他