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
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++
开发语言
2066:【例2.3】买图书
【输入样例】100100【输出样例】20.00#includeusingname
spaces
td;intmain(){doublem,n;cin>>m>>n;cout<
深深沉辰
·
2025-03-09 15:33
c++
开发语言
(每日一题)活动安排———<贪⼼-区间>
题⽬链接:AB31活动安排2.题⽬描述:3.解法:算法思路:区间问题的贪⼼:排序,然后分情况讨论,看看是合并还是求交集C++算法代码:#include#include#includeusingname
spaces
td
课堂随笔
·
2025-03-09 15:03
每日一题
算法
每日一题
考研
c++
数据结构
排序算法
P10948 升降梯上 灰 题解
评测记录(SPFA-SLF43ms)评测记录(Dijkstra44ms)Part1.题意简述有MMM个移动系数−Nusingname
spaces
td;#defineintlonglong#definepiipair
M_CI_
·
2025-03-09 13:55
算法
求最大公约数问题(信息学奥赛一本通-1207)
【输入】输入一行,包含两个正整数(usingname
spaces
td;intgcd(intm,intn){if(n==0)returnm;returngcd(n,m%n);}intmain(){intm
Doopny@
·
2025-03-09 09:17
信息学奥赛一本通
算法
数据结构
2025寒假天梯训练7
#includeusingname
spaces
td;#defineintlonglong#defineendl"\n"#definesz(x)(int)x.size()#defineeemplace_back
osir.
·
2025-03-09 06:26
c++
【K8S问题系列 | 10】在K8S集群怎么查看各个pod占用的资源大小?【已解决】
查看所有Pod的资源使用情况kubectltoppods--all-name
spaces
示例输出NAMESPACENAMECPU(cores)MEM
颜淡慕潇
·
2025-03-09 01:34
kubernetes
容器
云原生
后端
问题解决
有效的括号 删除字符串中的所有相邻重复项 逆波兰表达式求值 滑动窗口最大值
#includeusingname
spaces
td;classSolution{public:boolisvalid(strings){stackst;if(s.size()%2!=0){re
默默修炼的小趴菜
·
2025-03-09 00:14
算法
Oracle DB运维常用的SQL语句
1、查看表空间的名称及大小selectt.tablespace_name,round(sum(bytes/(1024*1024)),0)ts_sizefromdba_table
spaces
t,dba_data_filesdwheret.tablespace_name
小小不董
·
2025-03-08 21:49
Oracle
DB管理及运维
数据库
oracle
运维
服务器
dba
题海拾贝:P9241 [蓝桥杯 2023 省 B] 飞机降落
我的博客:#includeusingname
spaces
td;constintN=15;intT,n;intt[N],d[N],l[N];boolst[N];booldfs(intpos,intend)
<但凡.
·
2025-03-08 20:50
题海拾贝
蓝桥杯
算法
数据结构
上台阶(信息学奥赛一本通-1190)
【题目描述】楼梯有n(0usingname
spaces
td;#defineintlonglonginta[80];signedmain(){a[1]=1,a[2]=2,a[3]=4;for(inti=4
Doopny@
·
2025-03-08 18:12
信息学奥赛一本通
算法
c++——typename关键字
#includeintmain(){std::coutusingname
spaces
td;intmain(){coutclassMyClass{inti;vectorvi;vector::iteratorvitr
却道天凉_好个秋
·
2025-03-08 17:49
c++
c++
[蓝桥杯]路径之谜
的地图从左上角走到右下角四联通方向每走到一个格子向正北和正西射一支箭每个点只能走一次题目给出最后竖向和横向上的每个靶子上的箭的总数题目保证路径唯一求出行走路径题目约定每个小格子用一个数字代表,从西北角开始编号:0,1,2,3...0,1,2,3...0,1,2,3...数据范围0usingname
spaces
td
Joe_Wang5
·
2025-03-08 15:35
蓝桥杯
算法
深度优先
c++
数据结构
【二维数组】1174: 斜角I
(0usingname
spaces
td;#defineN1005inta[N];intmain(){intn;cin>>n;for(inti=1;i<=n;i++){for(intj=
呱呱呱~
·
2025-03-08 12:26
算法
Python代码缩进及Pycharm中代码缩进
你可以选择使用Tabs或
Spaces
来进行缩进。
Hi~晴天大圣
·
2025-03-08 11:08
Python
python
pycharm
缩进
蓝桥杯十六期模拟赛3题解【C++】
●答案23#includeusingname
spaces
td;#defineIOSios::sync_with_
Amazing_snack
·
2025-03-08 09:02
数据结构与算法
蓝桥杯
c++
算法竞赛备赛——【数论】快速幂
快速幂计算a的b次方时间复杂度:O(logb)#includeusingname
spaces
td;constintN=1e5+9;usingll=longlong;#definemod998244353llksm
Aurora_wmroy
·
2025-03-07 23:16
算法竞赛备赛
算法
c++
数据结构
蓝桥杯
c++,归并排序
#include#include#include#include#includeusingname
spaces
td;voidmerge_sort(int*arr,intl,intr){if(r-l<=1
慕容晓开
·
2025-03-07 14:50
日常学习
c++
算法
代码随想录算法训练营 | 图论 | 孤岛总面积、沉没孤岛
#includeusingname
spaces
td;voidsum(vector>&finded,constvector>&graph,inta,intb,int&result,bool&Ifisland
jcc_newszu
·
2025-03-07 13:07
代码随想录学习记录
算法
图论
作业day4
include#include#include#include#include#includeQT_BEGIN_NAMESPACEnamespaceUi{classWidget;}QT_END_NAME
SPACEs
tructLineIn
m0_58248149
·
2025-03-07 11:42
c++
读取图片并显示每个像素处的RGB值
就不解释了,主要是那个gdi中的函数用的少:#include#include#include#include#include#pragmacomment(lib,"gdiplus.lib")usingname
spaces
td
vincent-xia
·
2025-03-07 08:53
C++
GDI
像素RGB
二叉树三种遍历方式——前序、中序、后序(C++)
以下是使用C++实现的二叉树前序、中序和后序遍历的递归方法示例:#includeusingname
spaces
td;//二叉树节点结构体structTreeNode{intval;TreeNode*left
六七_Shmily
·
2025-03-07 06:33
#C++
数据结构与算法分析
c++
算法
开发语言
第15届 蓝桥杯 C++编程青少组中级省赛 202408 真题答案及解析
第1题【单选题】定义chara[]="hello\nworld",执行coutusingname
spaces
td;inta[6]={16,8,32,10,9,21};intfunc(intL,intR,
白昼ron
·
2025-03-07 04:19
蓝桥杯
C++
c++
蓝桥杯
算法
青少年编程
中级
省赛
小白学BFS:迷宫最短路径
代码实现(思路+测试疯狂注释版)#includeusingname
spaces
td;inttestcase;in
馍得脑呆
·
2025-03-07 04:48
小白学算法
算法
C/C++蓝桥杯算法真题打卡(Day3)
一、P8598[蓝桥杯2013省AB]错误票据-洛谷算法代码:#includeusingname
spaces
td;intmain(){intN;cin>>N;//读取数据行数unordered_mapidCount
Exhausted、
·
2025-03-07 01:48
蓝桥杯
c语言
c++
蓝桥杯
算法
字符串kmp-boarder
样例输入abcdabcd样例输出2解题代码:#includeusingname
spaces
td;constintN=1e6+9;chars
小丽今天学代码了吗
·
2025-03-07 00:36
算法
初学者系列:C++中using的用法
#includeintmain(){std::coutusingname
spaces
td;//引入std命名空间intmain(){coutusingstd::cout;//仅引入coutusingstd
蔡徐坤666
·
2025-03-06 23:52
C++
c++
开发语言
L1-023 输出GPLT分数 20
//point1就是注意不要超时吧#include#includeusingname
spaces
td;intmain(){stringss;inta=0,b=0,c=0,d=0,e;cin>>ss;e=
2401_88078323
·
2025-03-06 18:13
算法
蓝桥杯备赛日记【day1】(c++赛道)
代码描述:#includeusingname
spaces
td;intmain(){//请在此输入您的代码intm,n;
张二娃同学
·
2025-03-06 18:43
蓝桥杯
c++
职场和发展
Codeforces Round 903 (Div. 3) E. Block Sequence
直接删除掉第i个元素,那么就是上一步f[i+1]加上1;第二种转移方式:从第i+a[i]+1个元素直接转移,不需要增加步数;注意边界问题以及初始化,f[n+1]=0;#includeusingname
spaces
td
H_z___
·
2025-03-06 16:56
算法
c++
关于循环要注意的小问题
错误示范1:#includeusingname
spaces
td;intmain(){intm,n,sum=0;while(cin>>m>>n&&n>0&&m>0){for(inti=m;in)swap(
01292520
·
2025-03-06 15:43
C++学习记录
c++
算法002-日期-基础遍历模板、判断第几天、纪念日(分钟)、星期计算(星期)、时间显示(秒)、回文日期(遍历判断日期合法性+转化成字符串判断格式)
日期-基础循环遍历模板计算1000天后是几号#includeusingname
spaces
td;intm1[]={0,1,3,5,7,8,10,12};//大月intm2[]={0,4,6,9,11};
m0_66127918
·
2025-03-06 11:06
算法
数据结构
c++
C++实现单链表的增删改查
#includeusingname
spaces
td;//声明结构体typedefstructlnode{intdata;lnode*nex;}lnode,*LinkList;//最开始插入数据(直接调用版
ALAYI?
·
2025-03-06 09:57
c++
算法
链表
C++ 链表 增删查改
#if1#include#include#includeusingname
spaces
td;structListNode{intdata;ListNode*next;//结构体指针};voidListprintf
再路上1216
·
2025-03-06 09:23
C++
链表
c++
数据结构
如何根据当前系统的内存大小来设置JVM的内存分布
使用G1垃圾回收器:系统内存=1GXms=512mMaxMeta
spaceS
ize=256mReservedCodeCacheSize=240m系统内存=2GXms=1gMaxMeta
spaceS
ize
mameng1998
·
2025-03-06 09:52
java
java
list
开发语言
c++ primer plus知识点总结
#includeintmain(){usingname
spaces
td;//可以写在main外,为全局//usingstd:cin;//usingstd:cout;//usingstd:endl;intn
湖前一人对影成双
·
2025-03-06 03:06
c++
算法
开发语言
【pta】1045 快速排序
代码#include#include#includeusingname
spaces
td;intv[100010];intmain(){intn;cin>>n;vectora(n),b(n);intmax
Liu_Meihao
·
2025-03-05 22:26
算法
三数之和 四数之和 反转字符串 反转字符串||
#includeusingname
spaces
td;vector>ThreeSum(vector&num){vector>result;sort(num.begin(),num.end());for(inti
默默修炼的小趴菜
·
2025-03-05 22:25
算法
c++
数据结构
代码随想录算法训练营 | 图论 | DFS
98.所有可达路径//DFS#includeusingname
spaces
td;vector>result;vectorpath;voiddfs(constvector>&graph,inti,inttarget
jcc_newszu
·
2025-03-05 21:16
代码随想录学习记录
深度优先
算法
图论
用c++ 写会移动的坦克
#include#include#include#include"asd.h"usingname
spaces
td;chartank_up[10][10]={{'.','#','.','.','.','.
初学者1111123
·
2025-03-05 18:52
c++
开发语言
AcWing 寒假每日一题 2021-01-17 奖学金
总分,高在前语文,高在前学号,小在前这里提供两种方法:写法1:重载小于号AC代码:#include#includeusingname
spaces
td;constintN=310;intn;structStudent
陵游gentian
·
2025-03-05 05:33
yxc
yyds
算法
c++
排序
c++实现备忘录模式完整源代码
Memento.hMemento.hCodeManager.hmain.cppMemento.h#ifndef__MEMENTO_H__#define__MEMENTO_H__#includeusingname
spaces
td
源代码大师
·
2025-03-05 02:43
C和C++实战教程
c++
备忘录模式
qt
从0实现二叉树的存储与遍历
#includeusingname
spaces
td;constintN=1e5+10;intl[N];intr[N];intmain(){intn=0;cin>>n;for(inti=1;i>l[i]>
c++逐梦人
·
2025-03-05 01:24
算法
深度优先
数据结构
蓝桥杯
c++
代码随想录-- 第一天图论 --- 岛屿的数量
99统计岛屿的数量c++99.岛屿数量#include#include#includeusingname
spaces
td;structMGraph{intnumVertices,numEdges;vector
旅僧
·
2025-03-04 15:44
图论
深度优先
算法
C++ 串代码
字符串类代码,见下#include#includeusingname
spaces
td;classString{private:char*str;size_tlength;public:String();
qq_43355454
·
2025-03-04 15:13
c++
算法
C++ 树源代码
树代码,见下#includeusingname
spaces
td;templatestructListNode{Tdata;ListNode*next;ListNode(Td):data(d),next(
qq_43355454
·
2025-03-04 15:13
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
其他