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
7-3 谁先倒
A1这题很恶心,当时纯纯是没看清楚题目,没理解透,他是说如果两个人同时输了或者赢了,都不喝酒,这个小破题浪费哥们快半小时时间(太拉了还是)#include"bits/stdc++.h"usingname
spaces
td
小竹子14
·
2025-03-14 13:28
算法
c++
图论
【从零开始学习计算机科学】数据库系统(十)XML、XPATH、XQuery与XML数据库
【从零开始学习计算机科学】数据库系统(十)XML、XPATH、XQuery与XML数据库XML基础知识元素属性Name
spaces
文档类型定义(DTD)文档类型定义(DTD)XML数据文档的树模型XML
贫苦游商
·
2025-03-14 13:24
数据库
学习
xml
xpath
xml数据库
xquery
sql
c++ 嵌套名字空间和匿名名字空间
c++嵌套名字空间和匿名名字空间一、嵌套名字空间(NestedName
spaces
)核心特性示例二、匿名名字空间(AnonymousNamespace)核心特性示例三、关键区别与注意事项注意事项四、总结一
JANGHIGH
·
2025-03-14 04:48
C++
c++
开发语言
动态边界冒泡排序优化
代码如下:#includeusingname
spaces
td;constintN=1005;inta[N];
Cybernetic Sage
·
2025-03-13 23:21
算法
排序算法
对称二叉树 二叉树的最大深度 二叉树的最小深度
#includeusingname
spaces
td;structTreeNode{intval;TreeNode*left;TreeNode*right;TreeNode(intx){val=x;left
默默修炼的小趴菜
·
2025-03-13 22:44
算法
数据结构
计算机二级备考
usingname
spaces
td;//使用标准命名空间,这样可以直接使用标准库中的类和
.ccl
·
2025-03-13 22:14
c++
算法
开发语言
信息学奥赛一本通 1395:烦人的幻灯片(slides) 第四章 图论
教授这次演讲一共要用n张幻灯片(nusingname
spaces
td;structnode{intx
长春高老师编程
·
2025-03-13 22:38
信息学奥赛一本通-数据结构
图论
算法
8.孤岛的总面积
储备:代码随想录问题重点:最后:深搜版:#includeusingname
spaces
td;intd[4][2]={1,0,0,1,-1,0,0,-1};//不是要把整个岛搜出来,而是要陆地变海洋。
三二一一二三
·
2025-03-13 13:07
刷代码随想录
图
深度优先
算法
图论
leetcode
职场和发展
数据结构
Codeforces Round 995 (Div. 3)
A.PreparingfortheOlympiad题解:#includeusingname
spaces
td;intmain(){intt;cin>>t;vectora;vectorb;vectorans
polarours
·
2025-03-13 12:33
Codeforces
算法
c++
数据结构
C++入门
题目1267:A+BProblem#includeusingname
spaces
td;intmain(){inta,b,s;cin>>a>>b;//输入a,b,注意ab之间需要有空格s=a+b;cout
偶估计
·
2025-03-13 10:08
C++教程
软件
Java
GO
c++
软件
HTLM专栏
c++
算法
开发语言
回溯法——跳房子
输入格式:第一行输入格子数n(1usingname
spaces
td;#defineL110intn;inta[L];intv[L];intmain(){cin>>n;for(inti=0;
小赵起名困难户
·
2025-03-13 05:38
算法练习
算法
动态规划
数据结构
蓝桥杯备考:堆算法之最小函数值
当然这种做法是会超时的所以我们应该选择优先级队列,我们代入1把所有的值加入优先级队列,每次输出最小值,并且把该序列的第二个数代入进去加进队列,直到输出m个数结束#include#includeusingname
spaces
td
无敌大饺子 1
·
2025-03-13 00:32
蓝桥杯
算法
职场和发展
C++学习笔记22——指针的基本概念,指针变量的定义与使用,指针的大小
指针指针的基本概念指针的作用:可以通过指针间接访问内存内存编号是从0开始记录的,一般用十六进制数字表示可以利用指针变量保存地址指针变量的定义和使用指针变量定义语法:数据类型*变量名示例:#includeusingname
spaces
td
weixin_49522114
·
2025-03-12 23:21
C++入门学习笔记
1024程序员节
c++
洛谷P1102 A-B数对
标准答案这一题将A-B=C转换成A-C=B,首先将A数组每个元素出现的次数统计起来,用map映射,最后将A数组每次减一个C,再将A数组扫一遍,将所有映射的次数和加起来就是答案#includeusingname
spaces
td
浅梦ChienMong
·
2025-03-12 22:14
算法
c++
数据结构
每天一道算法题【蓝桥杯】【递增的三元子序列】
思路arr【0】和arr【1】分别用于更新递增序列的前两个数#define_CRT_SECURE_NO_WARNINGS1#includeusingname
spaces
td;classSolution{
桦0
·
2025-03-12 22:42
题解
算法
蓝桥杯
c++
leetcode
贪心算法
加分二叉树+最优贸易//信竞==心经
[NOIP2003提高组]加分二叉树#includeusingname
spaces
td;intn,v[100],dp[100][100],root[100][100];intdfs(intl,intr)
xiyuping24
·
2025-03-12 20:32
题解
c++
算法
十年OI一场空,不开long long见祖宗
//线段树:单点修改+区间求和#include#definellunsignedlonglongusingname
spaces
td;lln,m,a[1000010],ans[2000010],tag[2000010
xiyuping24
·
2025-03-12 20:31
题解
算法
gradle
tag
icpc
程序设计
docker
每天一道算法题【蓝桥杯】【山脉数组的峰顶索引】
思路二分查找算法注意二段性两段性为peak前arr[mid]arr[mid+1]#define_CRT_SECURE_NO_WARNINGS1#includeusingname
spaces
td;classSolution
桦0
·
2025-03-12 19:21
题解
算法
蓝桥杯
c++
leetcode
netlink学习笔记(一)
现在还没找到特别好的书,学习的资料主要来自网络,今天主要参考以下三个:http://linux.chinaunix.net/bbs/thread-1031932-1-1.htmlhttp://prolqspace.
spaces
.live.com
ascend__a1
·
2025-03-12 07:38
Linux
C++中push_back的用法
下面是push_back函数的一般用法和示例:使用push_back向vector添加元素:#include#includeusingname
spaces
td;intmain(){vectormyVector
じ☆ve 清风°
·
2025-03-12 07:07
C++
c++
开发语言
PTA:数字金字塔
输入格式:正整数n,1usingname
spaces
td;intmain(){intn;cin>>n;intk=38;for(inti=1;i0;s--){cout<<s;}}cout
悦悦子a啊
·
2025-03-12 01:11
C语言PTA习题
算法
数据结构
递归实现排列型枚举
从1~n中任选n个数输出所以的排列可能,1usingname
spaces
td;constintN=10;ints[N];//全局变量bool型初值为false,int型为0boola[N];//用来做标记避免一次排列时有重复数字重复
王希希呀
·
2025-03-12 00:07
深度优先
算法
图论
【牛客 差分】值周
代码#includeusingname
spaces
td;constintN=100000010;inta[N]={0},b[N];intmain(){std::ios::sync_with_stdio(
Liu_Meihao
·
2025-03-11 23:49
c++
【pta】1062 最简分数(涉及求最大公约数)
代码#includeusingname
spaces
td;intgys(intx,inty){while(y){intt=x%y;x=y;y=t;}returnx;}intmain(){intn1,m1,
Liu_Meihao
·
2025-03-11 23:49
算法
E1-106.租车骑绿道(贪心)
0usingname
spaces
td;voidsolve(){intm,n;cin>>m>>n;vectora(n);for(int
lanmaoki
·
2025-03-11 22:12
华为算法题
算法
c++
数据结构
蓝桥杯备考:单向链表模板题
#includeusingname
spaces
td;constintN=1e6+10;intne[N],e[N],id;intmp[N];intmain(){id++;e[id]=1;ne[id]=0;
无敌大饺子 1
·
2025-03-11 21:06
链表
数据结构
技术分享 | MySQL8.0 内部临时表占用磁盘空间问题排查
概念描述到了mysql8.0版本,SQL运行过程中产生的内部临时表已经有了变化,存放位置由innodb\_temp\_table
spaces
\_dir参数控制,默认放在$DATADIR/#innodb\
·
2025-03-11 19:05
数据库mysql
opencv借助ffmpeg读取sdp文件进行rtp拉流 20231019
++rtp_ffmpeg_test.cpp-ooutput$(pkg-config--libsopencv4)代码如下#include#include#include#includeusingname
spaces
td
诗筱涵
·
2025-03-11 16:32
rtsp
用简单代码实现功能
OpenCV
rtp
C++ time(0)函数
#include#includeusingname
spaces
td;intmain(){inttotalSeconds=time(0);intcurrentSeconds=totalSeconds%60
宁玉AC
·
2025-03-11 12:28
c学习
c++计算n的阶乘(用循环和递归)
1.循环//计算阶乘#includeusingname
spaces
td;intfct(int*p){intsum=1;while(*p>=2){sum*=((*p)--);}returnsum;}intmain
Absinthe_苦艾酒
·
2025-03-11 06:39
c/c++
c++
算法
数据结构
模拟实现string类
#include#include#include#includeusingname
spaces
td;classString{public:String():_arr(newchar[1]{'\0'}),
星霜旅人
·
2025-03-11 02:39
c++
SQLite3单例模式(C++)
h文件(我的文件是MySql.h)#ifndefMYSQL_H#defineMYSQL_H#include#include#include#include#includeusingname
spaces
td
别呀
·
2025-03-10 23:15
数据库
Linux
C++
SQLite
单例模式
数据库操作
【一维数组】数组元素输出
样例输入复制1012345678910样例输出复制10987654321提示nusingname
spaces
td;inta[10001];intmain(
cdjjskwk
·
2025-03-10 20:19
算法
数据结构
每日一题蓝桥杯P8772 [蓝桥杯 2022 省 A] 求和 题解c++
#includeusingname
spaces
td;intmain(){intt;intn;cin>>n;longlongsum=0;longlonghpf=0;longlongpfh=0;
wen__xvn
·
2025-03-10 20:18
洛谷
蓝桥杯
蓝桥杯
c++
职场和发展
基础算法:归并排序
r)return;intmid=l+r>>1;merge_sort(q,l,mid);merge_sort(q,mid+1,r);inti=l,j=mid+1,k=0;while(iusingname
spaces
td
奋斗吧!骚年!
·
2025-03-10 17:04
#
基础算法
C++
归并排序
递归
NO.30十六届蓝桥杯备战|C++输入输出|单组测试用例|多组测试用例|isalpha|逗号表达式(C++)
,只处理一组数据多组测试用例:程序运行一次,会处理多组数据测试数据组数已知(输入)测试数据组数未知特殊值结束测试数据单组测试⽤例B2009计算(a+b)/c的值-洛谷#includeusingname
spaces
td
ChoSeitaku
·
2025-03-10 15:50
蓝桥杯备考
蓝桥杯
c++
测试用例
PTA L2 题目合集
L2-001紧急救援(25分)题解链接L2-002链表去重(25分)#include#definePISpair#definevalfirst#definenesecondusingname
spaces
td
不牌不改
·
2025-03-10 15:14
#
【PTA】
c++
算法
【PTA】团体程序设计天梯赛-练习集 L2题目总结(完)
#includeusingname
spaces
td;#definefir(i,a,n)for(inti=a;imp;inta[N],ne[N];//某个地址的键值、下一个地址structnode{intv
karshey
·
2025-03-10 14:10
我的ACM之路
AWS Work
Spaces
:企业级云桌面的三大杀手锏,重新定义远程生产力
AmazonWork
Spaces
以云原生DaaS(桌面即服务)破局,实测部署效率提升90%,运维成本降低60%。一、揭秘AmazonWork
Spaces
:云桌面的技术进化论
AWS官方合作商
·
2025-03-10 10:09
aws
云计算
远程工作
sass
一维数组基础(题目+答案)
输入/输出例子1输入:517345输出:54371作答区域#includeusingname
spaces
t
电摇小人
·
2025-03-10 08:00
#
C++的各种算法及习题
算法
数据结构
c++
开发语言
L1-101 别再来这么多猫娘了!分数 15
#include#include#include#includeusingname
spaces
td;intmain(){intn,k,a=0,b,cd,pt=0;strings1[200],l="";stringss
2401_88078323
·
2025-03-10 08:27
c++
算法
开发语言
P8799 [蓝桥杯 2022 国 B] 齿轮
洛谷思路一遍历动态数组,复杂度O(N),70%超时思路二用unordered_set优化65%超时;思路三先预处理AC#include#defineendl'\n'#defineintlonglongusingname
spaces
td
爱沙尼亚警戒号
·
2025-03-10 05:39
蓝桥杯
c++
算法
数组简单练习
#includeusingname
spaces
td;//用数组求斐波那契数列intmain(){intf[100];f[0]=0,f[1]=1;intn;cin>>n;for(inti=2;iusingname
spaces
td
01292520
·
2025-03-10 04:55
C++学习记录
c++
动态规划-序列问题
最长公共子序列//最长公共子序列#includeusingname
spaces
td;constintN=1e3;//s1s2的最大长度strings1,s2;intdp[N][N];//表示s1的前i个字符和
祝余呀
·
2025-03-10 02:10
动态规划
算法
c++
蓝桥杯
c语言
POJ 2227 -- The Wedding Juicer(bfs+优先队列)
代码实现:#include#include#includeusingname
spaces
t
Ac-try
·
2025-03-09 18:02
队列/优先队列
搜
索
AtCode 第396场初级竞赛 A-E题解
【难度】GESP二级【代码参考】b=c#includeusingname
spaces
td;intmain(){intn,a,b,c;cin>>n>>a>>b;//前两个元素a和b//注意从第三个元素开始
是帅帅的少年
·
2025-03-09 18:28
青少年编程比赛题解
算法
c++
Atcode
Apple Tree POJ - 3321
回到这个节点时,此时的cnt是这个节点的结束时刻,例如下图:这样就实现了,将节点与节点之间的包含关系,转化到了线段区间上#include#include#include#includeusingname
spaces
td
里欧布鲁斯
·
2025-03-09 18:57
算法
at_abc396_c题解
###代码```cpp#includeusingname
spaces
td;constlonglongN=2000010;longlongn,m;longlonga[N],b[N];booldeb
hjyowl
·
2025-03-09 16:16
c语言
开发语言
蓝桥OJ3423安全序列
直接去求和,肯定会超时,所以我们利用前缀和来优化时间复杂度#includeusingname
spaces
td;usingll=longlong;constllp=1e9+7;constintN=1e6+
秭霏鱼
·
2025-03-09 16:44
c++
计算器!!!
#include#includeusingname
spaces
td;doublecalculate(doublea,doubleb,charop){switch(op){case'+':returna+
盈皓天
·
2025-03-09 16:41
算法
c++
开发语言
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他