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
Namespace
【算法模板】图论:最小生成树
从E中选出k#include#include#includeusing
namespace
std;c
T0uken
·
2025-04-08 23:33
竞赛算法
图论
算法
数据结构
C++-day7
1、#includeusing
namespace
std;classPerson{inta;public:Person():a(0){}intset(inta);intsum(void);intmul(void
weixin_51648475
·
2025-04-08 23:32
c++
算法
开发语言
C++数据抽象——对象与类详解
1.用类定义栈#includeusing
namespace
std;classMyStack{public:MyStack(){mytop=NULL;len=0;}//构造函数voidpush(inti)
宇航员写代码
·
2025-04-08 18:59
C/C++
c++
类
C++自学笔记---重载和内联函数
例如这一个例子://求两个值中的较大值、三个值中的最大值的函数(重载)#includeusing
namespace
std;//---返回a、b中的较大值---//intmax(inta,intb){returna
OneQ666
·
2025-04-08 18:57
c++
笔记
算法
第十五届蓝桥杯JavaB组省赛题解
第十五届蓝桥杯JavaB组省赛题解蓝桥杯2024年第十五届省赛真题-分布式队列-C语言网(dotcpp.com)阅读理解+模拟#include#includeusing
namespace
std;intmain
咸鱼啥也不会
·
2025-04-08 16:19
蓝桥杯
职场和发展
Qt实现读取本地文件并导出数据到Excel
的示例代码,分为头文件和源文件:**mainwindow.h**```cpp#ifndefMAINWINDOW_H#defineMAINWINDOW_H#include#includeQT_BEGIN_
NAMESPACE
namespace
Ui
可可乐不加冰
·
2025-04-08 14:02
qt
蓝桥杯2024年第十五届省赛真题-拔河
代码:#include#defineintlonglongusing
namespace
std;constintN=1e3+20;intn,arr[N];//前缀和ints[N];//每个区间的值intr
西北180的狼
·
2025-04-08 13:00
蓝桥杯
leetcode150———逆波兰表达式求值
//逆波兰表达式求值#include#include#includeusing
namespace
std;stringpostexp;doubleGetValue(){stackopand;doublea
没对象你不会new一个吗
·
2025-04-08 10:37
c++
算法
开发语言
动态规划之编辑距离
递归式如下:代码如下:#includeusing
namespace
std;enum{COPY,REPLACE,DELETE,INSERT,TWIDDLE,KILL,EN
Flammable_ice
·
2025-04-08 10:06
《算法导论》
c++汉诺塔程序
#includeusing
namespace
std;inttimes=0;//搬动次数voidmove(intn,charx,charz){cout">n;hanoi(n,'a','b','c')
时倾_.
·
2025-04-08 09:57
c++
算法
C++对汉诺塔问题的实现
代码实现:#includeusing
namespace
std;voidhanoi(intn,charA,charC,charB){if(n==1){cout"">
Joker—H
·
2025-04-08 08:25
c++
算法
[数据结构]进制转换
#include#defineMAXSIZE100using
namespace
std;typedefstruct{intdata[MAXSIZE];inttop;}seqstack;voidinitstack
Asteroid_PZX
·
2025-04-08 08:20
数据结构
c++
数据结构
学习
C++(类模板的运用)
vector实现一个简单的本地注册登录系统注册:将账号密码存入vector里面,注意防重复判断登录:判断登录的账号密码是否正确#include#include#include#includeusing
namespace
std
v维焓
·
2025-04-08 07:19
c++
开发语言
C#:实现RSA生成公钥和私钥算法(附完整源码)
C#:实现RSA生成公钥和私钥算法usingSystem;usingSystem.IO;usingSystem.Security.Cryptography;//这个引用很重要,必须要有
namespace
CreateKey
源代码大师
·
2025-04-08 01:40
C#算法完整教程
c#
开发语言
数据结构
算法
火影抽卡模拟器1.0.4
#include#include#includeusing
namespace
std;intmain(){intA,j=0,gzj=0,a1,ssp=0,gasp=0,asp=0,bzk=0,czk=0,
编程少年丶凉
·
2025-04-07 22:18
c++小程序
c++
火影抽卡模拟器1.0.2
增加高招返利功能注:初中生制作,如有不好请见谅#include#include#includeusing
namespace
std;intmain(){intA,j=0,gzj=0,a1,ssp=0,gasp
编程少年丶凉
·
2025-04-07 22:17
c++小程序
c++
人生之路1.20代码 第一部分
include#include#include#include#include#include#include#include#include#include#include#includeusing
namespace
std
MCYH0206
·
2025-04-07 21:46
游戏
c++
k8s如何修改默认命名空间
kubectlconfigset-context--current--
namespace
=xxx
小诸葛的博客
·
2025-04-07 19:27
kubernetes
linux
容器
高精度加减乘除法
当我们遇到很大很大的数时就要用到高精度一、高精度加法1.代码示例:#includeusing
namespace
std;strings1,s2;inta[10000],b[10000],c[10000];
橘子......
·
2025-04-07 18:23
c++
算法
开发语言
高精度
NOI / 2.5基本算法之搜索 323:棋盘问题 dfs
nusing
namespace
std;charch[10][
我也念过晚霞
·
2025-04-07 15:34
noi
算法
相连的边--树
1.60%版本--两种情况,星型和链型,用dfs做的,超时#includeusing
namespace
std;#defineN100011typedeflonglongll;typedefpairpii
泛舟起晶浪
·
2025-04-07 13:52
深度优先
算法
图论
Gym104081E
#include#includeusing
namespace
std;typedeflonglongll;lln,k,x,t,d,m;lli,j;voidsolve(){cin>>x>>t>>k>>n>>
泛舟起晶浪
·
2025-04-07 13:52
笔记
特殊的质数肋骨--dfs+isp
.dfs全排列组数,an记得还原2.如果范围确定且只比较质数,isp比线性筛快,主要这个范围太大了https://www.luogu.com.cn/problem/P1218#includeusing
namespace
std
泛舟起晶浪
·
2025-04-07 13:52
深度优先
算法
P1217 [USACO1.5] 回文质数 Prime Palindromes
写一个程序来找出范围[a,b](5≤ausing
namespace
std;intL,s=0,num=1,isZ=1,c=0;intmain(){cin>>L;while(s1&&i!
欧兹
·
2025-04-07 11:44
c++
[C++]使用opencv获取视频帧
extractFrames.cpp#include#include#include#include#include#include#includeusing
namespace
std;using
namespace
cv
哈哈哈哈哈哈哈哈哈...........
·
2025-04-07 11:41
c++
25年4月2日
1.思维导图2.3.①#include#include#include#include#include#include#include#includeusing
namespace
std;classmyDouble
strong_butter
·
2025-04-07 08:26
c++
算法
开发语言
25年4月3日
#include#include#include#include#include#include#includeusing
namespace
std;classHero{private:intatk;intdef
strong_butter
·
2025-04-07 08:26
c++
des加密算法
//L0,R0的产生过程#include#includeusing
namespace
std;//选择置换1//验证过了,没问题!!!
江云风
·
2025-04-07 00:31
代码
C++
算法
Windows下Socket编程TCP——应付大部分的Windows TPC编程场景。
defineINTERNAL_LOG_MODEINTERNAL_LOG_OFF//orINTERNAL_LOG_ON//#defineINTERNAL_LOG_MODEINTERNAL_LOG_ON//orINTERNAL_LOG_OFF
namespace
WinTCP
我不是程序员~~~~
·
2025-04-07 00:01
socket
Qt实战
k9s指令操作
常用指令重启pod:nspodKillCtrl-d删除pod更换镜像号在:dp进入e编辑i保存退出:wqk9s简单用法:ns切换到
namespace
界面:po->pod:dp->deployment:svc
yuanfeidexin321
·
2025-04-06 21:15
linux
运维
服务器
c语言字符数组自动填充,数组在C中自动填充
则数组中的其余元素将设置为该确切数字,每个其中之一.我理解如果一个元素超出其类型限制,编译器会将其限制为该限制,但我无法理解为什么它与其他项目做同样的事情,甚至没有要求用户填充它们.这是我运行的一个简单测试:#includeusing
namespace
weixin_39670511
·
2025-04-06 20:38
c语言字符数组自动填充
C++分治算法
归并排序#includeusing
namespace
std;inta[110]={0};voidfunc(int,int);voidfuncm(int,int,int);intn;intmain(){cin
BanyeBirth
·
2025-04-06 19:31
算法
c++
排序算法
DeepSeek 教我 C++ (6) : C++17 filesystem 的技巧
帮忙快速整理一些编程细节,看看有没有没看到过的解释.提问:整理一下C++17filesystem常用方法以下是C++17std::filesystem常用方法的整理,按功能分类:1.头文件与命名空间#include
namespace
fs
ZhiqianXia
·
2025-04-06 19:00
DeepSeek
教我C++
c++
java
开发语言
【洛谷刷题笔记】P1217 [USACO1.5] 回文质数 Prime Palindromes 题解
写一个程序来找出范围[a,b](5≤a#include#includeusing
namespace
std;//判断素数
CMD138
·
2025-04-06 10:29
ACM刷题笔记
1024程序员节
笔记
c++
算法
NO.53十六届蓝桥杯备战|set和map|算法题|size|empty|begin|end|insert|erase|find|count|lower_bound|upper_bound(C++)
创建set#include#includeusing
namespace
std;intmain(){setmp1;setmp2;return0;}size/emptysize:返回set中实际元素的个数。
ChoSeitaku
·
2025-04-06 08:48
蓝桥杯备考
算法
蓝桥杯
c++
使用C#实现从Hive的CREATE TABLE语句中提取分区字段名和数据类型
usingSystem;usingSystem.Collections.Generic;usingSystem.Text.RegularExpressions;
namespace
HivePartitionParser
weixin_30777913
·
2025-04-05 17:05
hive
c#
数据仓库
开发语言
C++ 字符串前面加一个0
#includeusing
namespace
std;#includeintmain(){stringstreamss;//定义一个stringstream变量,需要包含头文件includestringstr
JSC_choice
·
2025-04-05 16:34
c++
最短路径--SPFA算法
SPFA算法的代码实现#include#include#includeusing
namespace
std;typedefpairPII;intn,m,cnt;intdis[105];intvis[105
OYangxf
·
2025-04-05 14:19
数据结构与算法
算法
图论
数据结构
蓝桥杯 第十五届蓝桥杯大赛软件赛省赛C/C++ 大学 B 组宝石组合
比如说a=2^3*5^6b=2^0*5*7a和b的最大公因数为2^0*5^6//a和b的最小公倍数为2^3*5^7//所以只需要从n个数中选出3个数使这三个数的最大公因数最大即可#includeusing
namespace
std
HNIT0o0syp
·
2025-04-05 14:19
蓝桥杯
c语言
c++
图论的基础
E-Replace(判环,破环成链)#include#includeusing
namespace
std;using
namespace
atcoder;constintC=26;intmain(){intn
小周不爱卷
·
2025-04-05 14:19
刷题总结
图论
C++的缩进 和 Python的缩进
如:#includeusing
namespace
std;intmain(){coutusing
namespace
std;intmain(){cout2:print("5isgreaterthan2")在这里
611 lx
·
2025-04-05 13:40
c++
python
开发语言
青少年编程
算法
Cloudberry Jam(Edu Round 177)
#include#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;using
namespace
std;voidGordenGhost
GordenGhost
·
2025-04-05 11:57
c++
算法
codeforces
C++数据结构——排队等候
习题3-10排队等候某社会福利机构组织一项活动,参加的对象分为两类,一类是老年人(年龄≥60岁),另一类是年轻人(年龄using
namespace
std;intmain(){intT,n;intnum;
祖安大龙
·
2025-04-05 11:25
C/C++算法数据结构
c++
数据结构
<代码随想录>陪伴刷题【P007 数组-区间和】
循环就可以将区间数的和计算出来,假如我查询了m个区间的和,每个区间正好最长,则每次的时间复杂度都为O(n),总时间复杂度能达到O(m*n),面对大数据量直接超时:暴力求解代码如下:#include#includeusing
namespace
std
Dooms day
·
2025-04-05 08:07
算法
c++
leetcode
数据结构
题目 3209: 蓝桥杯2024年第十五届省赛真题-好数
#includeusing
namespace
std;inthaoshu(intx){intm=x;intcount=0;intsum=0;while(x!
CQY0531
·
2025-04-05 07:30
算法
c++
数据结构
【蓝桥杯速成】| 17.完全背包(一维easy版)
code#includeusing
namespace
std;intmain(){intn,m;cin>>n>>m;vectordp(n+1,0);dp[0]=1;fo
最好的药物是乌梅
·
2025-04-05 05:49
算法
c++
数据结构
蓝桥杯
c#的form实现飞机大战
WinFormsApp2\Form1.csusingSystem;usingSystem.Collections.Generic;usingSystem.Drawing;usingSystem.Windows.Forms;
namespace
Wi
勘察加熊人
·
2025-04-05 05:18
typescript
c#
开发语言
ABC 398
假设当前在时刻i,对于第j(j#defineintlonglongusing
namespace
std;constintN=2e5+5,INF=1e18;intT,n,r,c,cnt,ans,dx[N],
空雲.
·
2025-04-05 03:06
算法
【C++练习系列】选择排序的递归算法(c++)(有例题和详尽解析)
解决问题的代码:#includeusing
namespace
std;voidsort(intx[],intn,intindex){if(index>=n-1)return;else{intmin=x[inde
在下_诸葛
·
2025-04-05 01:51
关于c++题目的代码与心得
c++
C++——排序算法代码实现
1.头文件&&结构体定义#include#includeusing
namespace
std;#defineMaxLength500//定义最大长度typedefintElemType;typedefstructSqList
山有木兮°
·
2025-04-05 01:21
数据结构
排序算法
指针
上一页
15
16
17
18
19
20
21
22
下一页
按字母分类:
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
其他