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
华为 笔试 4.24 第二题:这一题只通过了36%why
日常实习求捞捞本科北理24届,目前已经拿nus研究生offer准备在剩下这几个月做一段软件开发实习,我之前有小公题解|#[NOIP2010]数字统计##includeusingname
spaces
td;
han_xue_feng
·
2025-04-29 21:38
java
Education Codeforces Round 178 (Rated for Div2) A-E题解
DP,用我的话来讲的话就是链式前向星优化DP(之前想用这样的思路做结果wronganswer过,这次这个思路总算能过了)题解部分A.ThreeDecks给定三个数字a,b,c,保证ausingname
spaces
td
W_Sherlock_Henry
·
2025-04-29 19:55
Codeforces
做题总结
算法
c++
蓝桥杯(2021第十二届C/C++真题[省赛][B组])
题解:#includeusingname
spaces
td;intn[10],num;intmain(){for(inti=0;i#includeusingnamespace
CSDN_kada
·
2025-04-29 14:44
蓝桥杯
c语言
c++
acwing算法提高之图论--二分图
结论:最大匹配数=最小点覆盖=总点数-最大独立集=总点数-最小路径覆盖2训练题目1:257关押罪犯C++代码如下,#include#include#includeusingname
spaces
td;typedefpairPII
YMWM_
·
2025-04-29 12:57
Acwing
C++学习
算法
图论
C++保留小数位数
如:#include#includeusingname
spaces
td;intmain(){doublex=3.1415926;coutusingname
spaces
td;intmain(){doublex
快乐的小涵
·
2025-04-29 12:56
c++
开发语言
C++UDP发包收包——有完整的封装呀
首先我们要定义类:#include#include#pragmacomment(lib,"Ws2_32.lib")usingname
spaces
td;classmysocket{sockaddr_inUDPbroadcast
张师睿
·
2025-04-29 05:35
c++
udp
开发语言
网络协议
网络
经验分享
天梯——L1-110 这不是字符串题
代码#includeusingname
spaces
td;intmain(){intn,m;cin>>n>>m;strings;for(inti=0;i>x;s+=char(x+'0');}while(m
一定要AK
·
2025-04-29 02:13
算法
c++
数据结构
【TUST“码蹄杯”编程之星】4.27号每日一题-23101206李迪菲
你可以对该数组执行以下操作:选择两个不同的整数i,j(1≤iusingname
spaces
td;#definelllonglong#defineMODintmain(){ios::sync_with_stdio
恒757
·
2025-04-28 21:11
算法
蓝桥杯 11. 打印大X
其中:0usingname
spaces
td;intmain(){intm,n;cin>>m>>n;intw=n-1+m,l=0,r=w-1;while(l<=n-1){string
wuqingshun314159
·
2025-04-28 08:52
蓝桥杯题库
蓝桥杯
算法
职场和发展
深度优先
数据结构
图论---LCA(Tarjan 离线做法)
#includeusingname
spaces
td;typedefpairpii;constintN=20010,M=2*N;//是无向边,边需要见两边intn,m;vectorg[N];intp[N]
快乐的小涵
·
2025-04-28 00:59
图论
算法
数据结构
c++初阶--vector的实现
下面是vector的代码:vector.h#pragmaonce#include#includeusingname
spaces
td;namespaceone{templateclassvector{public
濊繵
·
2025-04-27 20:02
c++
c++
C++ 100~n之间的所有整数,数字x共出现的次数
题目:编写程序,计算区间100~n之间的所有整数(100usingname
spaces
td;intmain(){intn,x;intcount=0;cin>>n>>x;intg=0,s=0,b=0;for
xzal12
·
2025-04-27 15:05
C++
c++
素数筛法 - 欧拉筛法
)到O(√n)2.著名的埃式筛法 时间复杂度:O(nloglogn)而要谈的欧拉筛法则是在埃式筛法的基础上再次进行优化3.欧拉筛法 时间复杂度为:O(n)#includeusingname
spaces
td
dailelelelele
·
2025-04-27 15:33
算法
算法
kubectl的使用
查看集群有多少节点kubectlgetnodes获取集群状态的摘要信息(组件信息)kubectlgetcs查看所有命名空间下的所有pod的状态和信息kubectlgetpods--all-name
spaces
和计算机搏斗的每一天
·
2025-04-27 14:58
Kubernetes
java
linux
开发语言
kubernetes
高精度除法(高精除底精)
代码:#include#includeusingname
spaces
td;constintN=1110;usingname
spaces
td;intmain(){strings;//被除数的字符形式intx
欲掩
·
2025-04-27 10:30
算法
c++
数据结构
牛客小白月赛115
目录A过马路B签到题C命运之弹(EasyVersion)A过马路#includeusingname
spaces
td;intmain(){inta,b,c;cin>>a>>b>>c;if(a==b||b=
三流搬砖艺术家
·
2025-04-27 10:30
牛客
算法
c++
数据结构
C# 跨进程 临界区 互斥 进程锁
name
spaceS
ystem{usingSystem.Threading;//////跨进程的临界区。
董先生_ad986ad
·
2025-04-26 18:53
C#
c#
开发语言
小山菌_代码随想录算法训练营第六十一天|拓扑排序精讲、dijkstra(朴素版)精讲
拓扑排序精讲文档讲解:代码随想录.拓扑排序精讲视频讲解:无状态:已完成代码实现#include#include#include#includeusingname
spaces
td;intmain(){intm
小山菌
·
2025-04-26 18:20
算法
代码随想录算法训练营第五十一天 |拓扑排序精讲 dijkstra(朴素版)精讲
%E8%BD%AF%E4%BB%B6%E6%9E%84%E5%BB%BA.html#include#include#include#includeusingname
spaces
td;intmain(){
S1588994
·
2025-04-26 18:47
算法
边和图的存储(邻接表)
//边和图的存储(邻接表)#include#includeusingname
spaces
td;constintN=100010,M=N*2;//h存的n个链表的链表头inth[N],e[N],ne[N]
快乐的小涵
·
2025-04-26 15:58
深度优先
图论
算法
编程日志4.21
单链表部分题目1.Problem-1092#include#includeusingname
spaces
td;#defineeleTypeintstructListNode{eleTypedata;//
牛牛程序员成长日记
·
2025-04-26 13:44
算法
数据结构
2024年全国青少年信息素养大赛(C++算法创意实践初赛真题)
2024年全国青少年信息素养大赛C++算法创意实践初赛真题编写程序,计算区间100~n之间的所有整数(100usingname
spaces
td;intmain(){intn,x.cnt=0;cin>>n
Da_秀
·
2025-04-26 12:37
青少年信息素养大赛
c++
算法
数据结构
【模板】普通平衡树(数据加强版)(洛谷P6136)
#include#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;usingname
spaces
td;voidGordenGhost
GordenGhost
·
2025-04-26 11:04
算法
c++
洛谷
平衡树
数据结构
splay
图论---Prim堆优化(稀疏图)
#include#include#include#includeusingname
spaces
td;constintN=510,INF=0x3f3f3f3f;typedefpairPII;//(distance
快乐的小涵
·
2025-04-26 09:54
图论
算法
图论---Kruskal(稀疏图)
将所有边按权重从小到大排序,调用系统的sort()2,枚举每条边的a,b,权重if(a、b不联通)就将这条边加入集合中//最小生成树—Kruskal算法(稀疏图)#include#includeusingname
spaces
td
快乐的小涵
·
2025-04-26 09:22
图论
c++
算法
数据结构
算法笔记.高精度除法
数据范围1≤A.length≤100000,1≤B≤10000,B一定不为0输入样例:14412输出样例:120我的代码:#includeusingname
spaces
td;#includeintt=0
xin007hoyo
·
2025-04-26 06:59
算法学习笔记
算法
c++
笔记
数据结构
二叉树前中后遍历递归法【完整代码(超简单)】
直接bia代码//二叉树的前中后序遍历【递归法】#includeusingname
spaces
td;//结点结构体typedefstructBTnode{chardata;//自己的数据BTnode*lch
Kathryn7
·
2025-04-26 03:42
算法
数据结构
c++
操作系统:磁盘调度实现
#include#include#include#includeusingname
spaces
td;intrequest[999];//用于记录访问的磁道号//intrequest[]{30,50,100,180,20,90,150,70,80,10,160,120,40,110
洛水入长安
·
2025-04-26 03:09
算法
c++
2025/4/16 心得
例题2.2.1糖块现在有n(1usingname
spaces
td;intn,m,a,b,sum[1000010],sum1[1000010];intmain(){freopen("candy.in","
bbc121226
·
2025-04-26 00:22
数据结构
算法
C++ STL之deque
1.定义分段的连续内存,可以通过前面和后面增加内存(分段内存数组)2.基本用法//头文件#includeusingname
spaces
td;//基本操作定义:deque变量名;Eg:dequeque;/
智能视觉工作室
·
2025-04-25 23:45
C与C++
调不出来的问题记录(链式前向星+拓扑排序)
i,l,r)for(inti=l;i=l;i--)#defineintlonglong#definepiipair#defineendl'\n'#definePI3.14159265usingname
spaces
td
啊我不会诶
·
2025-04-25 20:17
问题
算法
每日一题~ cf div3 957 D+E(若只dp,暴力枚举)
(脑袋木了)题意:nmkn长的字符,mk可以跳跃的最大距离(每次跳跃的距离1usingname
spaces
td;voidsolve(){intn,m,k;cin>>n>>m>>k;strings;cin
窜天遁地大吗喽
·
2025-04-25 19:11
每日一题
算法
c++类 求长方体面积和体积
#includeusingname
spaces
td;classCube{public://设置长voidsetL(intl){m_L=l;}//获取长intgetL(){returnm_L;}//设置宽
小蜗 strong
·
2025-04-25 14:06
c++
开发语言
NOIP2013 提高组.转圈游戏
mod n(x+10^k\timesm)\modn(x+10k×m)modn,如果直接计算一定会超时,因此可以使用快速幂进行优化代码#include#include#includeusingname
spaces
td
Ayanami_Reii
·
2025-04-25 09:32
c++
算法
笔记
Acwing161周赛题解
A#include#include#includeusingname
spaces
td;intgcd(inta,intb){returnb?
Ayanami_Reii
·
2025-04-25 09:01
算法
笔记
c++
C++ IO流作业
流:若干字节数据从一端到达另一端我们叫做流流类体系:流对象,和流运算符>>usingname
spaces
td;voidtestostream(){cout#includeusingname
spaces
td
huyaoyuyue
·
2025-04-25 03:25
c++
visual
studio
c语言
C/C++常用函数汇总
(或者直接万能头#include)√(1):isalpha(ch)若ch是字母返回非0值,否则返回0:#includeusingname
spaces
td;intmain(){charc1='a';charc2
三元湖有大锦鲤
·
2025-04-25 03:24
ACM
c++
c语言
visual
studio
开发语言
算法
c++鸡兔同笼
1#include2usingname
spaces
td;3intmain()4{5inta,b,x,y;6a=35,b=94;7x=a*2-b/2;8y=b/2-a;9cout<<"x="&
liujunsongljs
·
2025-04-25 02:14
二叉树---数据结构
#include"stdafx.h"#include#include#includeusingname
spaces
td;typedefintElemtype;typedefstructTree{Elemtypedata
仗剑天涯津一
·
2025-04-24 17:43
二叉树
遍历
叶子节点
高度计算
递归
ubuntu搭建samba服务器
1.安装sambasudoapt-getinstallsambasudoapt-getinstallsmbclient2.创建文件夹并分配权限sudomkdir/home/jy/work
spaces
udochmod777
忒想进步
·
2025-04-24 13:48
服务器
ubuntu
linux
zbar+opencv配合实现条码识别
1.安装opencv2.安装zbar3.注意程序中链接库配置#include#include#include#include#include#includeusingname
spaces
td;usingnamespacecv
我是是是是是西红柿
·
2025-04-24 08:45
linuxC/C++
opencv
zbar
条码识别
【数据结构入门训练DAY-21】信息学奥赛一本通T1334-围圈报数
其中nusingname
spaces
td;intmain(){intn,m;intsum
不会计算机的捞地
·
2025-04-24 00:20
数据结构入门训练
算法
C++:继承中的构造函数和析构函数
#includeusingname
spaces
td;classBase{public:Base(){coutusingname
spaces
td;//该类中仅提供了有参构造函数,无默认构造函数classBase
青瓦松
·
2025-04-23 16:25
C++入门
c++
C#之 简易的服务器与客户端
usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Net;usingSystem.Net.Sockets;name
spaceS
erver
爱吃苹果的小王同学
·
2025-04-23 13:40
c#
蓝桥杯备战——dp算法设计(找钱案例)
以下代码#include#includeusingname
spaces
td;intmin(inta,intb)//要使得找钱时,张数最少,即是要求最小值。
Alaskaist
·
2025-04-23 12:28
算法
蓝桥杯
算法
第18场小白入门赛(蓝桥杯)
#includeusingname
spaces
td;
running_Turtle1
·
2025-04-23 07:32
Tutorial
蓝桥杯
算法
第四篇《XTTS 跨平台迁移:让数据库无缝跨越操作系统》(XTTS)
《Oracle数据迁移与备份系列》第四篇:《XTTS跨平台迁移:让数据库无缝跨越操作系统》(XTTS)1.概述Oracle的XTTS(CrossPlatformTransportableTable
spaces
xuanloyer
·
2025-04-23 00:16
oracle数据迁移
数据库
oracle
运维
[16届蓝桥杯 2025 c++省 B] 产值调整
,根据题意不断/2,int自动向下取整,注意纯模拟会tle,需要判断一下,你会发现几个数不断/2,他们会趋于相同,两个数相加/2就是平均数嘛,后面他们肯定会趋于平均的#includeusingname
spaces
td
a东方青
·
2025-04-22 23:42
蓝桥杯
c++
蓝桥杯
算法
埃氏筛选素数(C++)
#includeusingname
spaces
td;intvis[10000];intmain(){intn=1000;intm=sqrt(n+0.5);for(inti=2;i<=m;i++)if(!
东风街大饼工厂
·
2025-04-22 22:36
算法实现
c++
埃氏筛法
奇异递归模板设计模式-CRTP
首先写一个最简单的奇异递归第一个例子//奇异递归需要用到c++的模板特性#includeusingname
spaces
td;//基类templateclassAnimal{public:staticintCounter
2301_80355452
·
2025-04-22 22:34
设计模式
c++
算法
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
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
其他