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
1.6编程基础之一维数组 10大整数加法
大整数加法信息学奥赛一本通(C++版)在线评测系统P1601A+BProblem(高精)A+BProblem(高精)-洛谷C++代码(1)#include#include#include#includeusingname
spaces
td
dllglvzhenfeng
·
2023-11-27 12:49
1.6
编程基础之一维数组
科普
信息技术
c++
算法
蓝桥杯
信奥
CSP-J
Ubuntu22.04 Jupyter Lab 设置工作目录为jupyter lab命令启动时所在目录
找到.jupyter/lab/work
spaces
/目录删除其中的default-xxx-workspace文件找到.jupyter/jupyter_lab_config.py文件(无此文件可用jupyternotebook
剑气近_Ding
·
2023-11-27 11:36
jupyter
python
poj-1016
#include#include#includeusingname
spaces
td;stringinput;stringtemp;stringoutput;intvisit[10];stringHH[16
小夏_3f26
·
2023-11-27 10:46
opencv小案例 --- 证件照背景替换
代码演示:#include#includeusingname
spaces
td;usingnamespacecv;Matmat_to_sample(Mat&image);intmain(intargc,char
焦糖甜饼~
·
2023-11-27 09:14
Opencv
opencv
计算机视觉
人工智能
王者荣耀小游戏4.0
1:0)usingname
spaces
td;boolke
FiveDiamondore
·
2023-11-27 08:54
王者荣耀小游戏1.0震撼上线!C++版
#include//编个游戏,不顾一切的用万能#includeusingname
spaces
td;chara;intmain(){cout>a;system("Cls");if(a=='A'||a=='
FiveDiamondore
·
2023-11-27 08:53
关机游戏
洛谷题单代码参考【入门2 分支结构】
洛谷团队系统肥胖问题三位数排序月份天数不高兴的津津买铅笔ISBN号码(普及题)小玉家的电费小鱼的航程(改进版)三角函数陶陶摘苹果三角形分类(普及题)【注意先判断是否为三角形,再去判断是哪一类或两类或三类三角形】ABC#includeusingname
spaces
td
Guqing_f
·
2023-11-27 08:30
洛谷算法题
c++
算法
c算法
链表翻转O1
//#include#includeusingname
spaces
td;typedefstructNode{intdata;Node*next;}node,*Linklist;voidcreateLink
0b5b90259598
·
2023-11-27 07:04
P21-23-逻辑运算符-否、或、与
#includeusingname
spaces
td;intmain(){//逻辑运算符非//在c++中,除了0都是为真inta=10;cout<
又怨芭蕉
·
2023-11-27 07:45
html5
html
P29-选择结构-三目运算符a>b?a:b
#includeusingname
spaces
td;intmain(){inta=5;intb=10;intc=0;(a>b?
又怨芭蕉
·
2023-11-27 07:45
html
html5
css
播放器开发(四):多线程解复用与解码模块实现
创建BaseQueue基类BaseQueue.h#include#include#includeusingname
spaces
td;templateclassBaseQueue{public:/**
绿色恐龙-
·
2023-11-27 07:10
C++
音视频
QT
ffmpeg
c++
音视频
qt
C++ STL set
源文件#include#includeusingname
spaces
td;/***set存储的是key和value相等的键值对,遂仅存值;底层是二叉树实现;虽然没有const修饰,但一般只删除新增,而不直接修改
Youndge
·
2023-11-27 05:51
C++
STL
c++
stl
C++primeplus P368-P391
string1.定位new运算符(1)介绍最基本的定位new(2)定位new运算符用于对象2.重载#includeusingname
spaces
td;charbuffer[5000];intmain()
哆啦刘小洋
·
2023-11-27 05:17
c++prime
plus
c++
算法
开发语言
C++ STL set:erase()、clear()、find()、insert()方法
一、erase()方法如图所示:#include#include#includeusingname
spaces
td;intmain(){//创建并初始化set容器setmyset{1,2,3,4,5};
Bug->Maker
·
2023-11-27 05:46
c++
算法
开发语言
6.6-6.7C++primeplus P137-P166
如果if后面只接了一句话,那么不需要大括号如果if后面不只一句话,那么需要一个大括号把所有语句括起来#includeusingname
spaces
td;intmain(){inta=5
哆啦刘小洋
·
2023-11-27 05:46
c++prime
plus
c++
开发语言
《C++PrimePlus》第7章 函数:C++的编程模块
7.1复习函数的基本知识函数的定义和使用#includeusingname
spaces
td;intmain(){voidcheers(intn);doublecube(doublex);cheers(5
Mako5455
·
2023-11-27 05:45
C++
c++
《C++PrimePlus》第8章 函数探幽
8.1内联函数使用内联函数#includeusingname
spaces
td;inlinedoublesquare(doublex){returnx*x;}intmain(){doublea;a=square
Mako5455
·
2023-11-27 05:45
C++
c++
每日一题 - 231125 - D - Counting Ls
D-CountingLsTAG-一眼丁真、鉴定为纯纯大水题一眼丁真、鉴定为纯纯大水题一眼丁真、鉴定为纯纯大水题时间复杂度-O(N2)O(N^2)O(N2)//#includeusingname
spaces
td
乐意奥AI
·
2023-11-27 05:44
ACM
算法
每日一题 - 231126 - C - Minimize Abs 2
C-MinimizeAbs2TAG-双指针双指针双指针时间复杂度-O(D)O(\sqrtD)O(D)//#includeusingname
spaces
td;#defineintlonglongvoidsolve
乐意奥AI
·
2023-11-27 05:44
ACM
算法
每日一题 - 231124 - L. Palm Island
L.PalmIslandTAG-双端队列双端队列双端队列时间复杂度-O(T∗N2)O(T\astN^2)O(T∗N2)//#includeusingname
spaces
td;//#defineintlonglongconstintN
乐意奥AI
·
2023-11-27 05:14
ACM
算法
每日一题 - 231124 - M. Painter
M.PainterTAG-一眼丁真、鉴定为纯纯大水题一眼丁真、鉴定为纯纯大水题一眼丁真、鉴定为纯纯大水题时间复杂度-O(N∗104)O(N\ast10^4)O(N∗104)//#includeusingname
spaces
td
乐意奥AI
·
2023-11-27 05:14
ACM
算法
每日一题 - 231125 - P4316 绿豆蛙的归宿
P4316绿豆蛙的归宿TAG-期望DP、拓扑排序期望DP、拓扑排序期望DP、拓扑排序时间复杂度-O(N+M)O(N+M)O(N+M)//#includeusingname
spaces
td;//#defineintlonglongconstintN
乐意奥AI
·
2023-11-27 05:14
ACM
算法
每日一题 - 231126 - E - Mex and Update
E-MexandUpdateTAG-set、思维set、思维set、思维时间复杂度-O(max(N,Q))O(\max(N,Q))O(max(N,Q))//#includeusingname
spaces
td
乐意奥AI
·
2023-11-27 05:13
ACM
算法
线性表合并——合并两个集合
现有两个线性表LA和LA分别表示两个集合A和B,合并为一个新的集合A=A∪B.完整代码如下:#include#include#include#include#includeusingname
spaces
td
何处望天明CS
·
2023-11-27 04:13
数据结构(C语言版)
算法
数据结构
算法2.1 合并两个线性表 C++实现
#includeusingname
spaces
td;intconstMAX_SIZE=100;structListNode{//定义线性表的结构体intval;};classMyList{//定义线性表的类
扛事王老五
·
2023-11-27 04:13
c++
数据结构
算法
合并排序的非递归算法
//合并排序的非递归算法/*合并排序:将待排序元素分成大小大致相同的两个子集合,分别对两个子集合进行排序最终将排好序的子集合合并成所要求的排好序的集合*/#includeusingname
spaces
td
别动我u盘
·
2023-11-27 04:11
算法
算法
合并排序
算法基础之滑动窗口
滑动窗口主要思想:单调队列保证队列中下标跨度始终为3个数q[N]维护数组中元素下标方便判断窗口大小#include#includeusingname
spaces
td;constintN=1000010;
阳光男孩01
·
2023-11-27 04:08
算法
c++
数据结构
算法基础之Trie字符串统计
Trie字符串统计核心思想:数组模拟树cnt为记录的字符串个数#includeusingname
spaces
td;constintN=100010;intcnt[N],son[N][26],idx;charstr
阳光男孩01
·
2023-11-27 04:38
算法
c++
数据结构
算法基础之最大异或对
最大异或对核心思想:数组模拟Trie实现因为每个位置100000的数据总共31位所以M取到3100000#include#includeusingname
spaces
td;constintN=100010
阳光男孩01
·
2023-11-27 04:38
算法
c++
数据结构
算法基础之逆序对个数
逆序对个数主要思想:分治**(类似归并排序)**3.一边一个的逆序对数量:归并时如果p[i]>p[j]则i->mid的所有元素与j均为逆序对#includeusingname
spaces
td;constintN
阳光男孩01
·
2023-11-27 04:37
算法
c++
数据结构
算法基础之KMP算法
算法核心思想:回退处理和next前缀数组ne[N]前缀数组表示模式串当前位置的最长相当前后缀当一个字符不匹配时可以回退到上一个前后缀相等的位置再次开始匹配不用再遍历一次#includeusingname
spaces
td
阳光男孩01
·
2023-11-27 04:37
算法
c++
数据结构
算法基础之差分
前缀和的逆操作在b[l]加上一个常数C会导致前缀和数组a[]的所有添加b[l]的前缀和都加C原本O(n2)的操作现在就是O(1)先求差分数组根据操作完的差分数组求原数组(前缀和)#includeusingname
spaces
td
阳光男孩01
·
2023-11-27 04:07
算法
c++
数据结构
算法基础之单调栈
单调栈求左边最小最近的数的值没有返回-1将左边数存入栈(数组模拟)若stk[tt]>=x说明大于当前值tt–利用栈的先进后出特性能找到左边最近的#includeusingname
spaces
td;constintN
阳光男孩01
·
2023-11-27 04:07
算法
c++
数据结构
算法基础之合并集合
合并集合核心思想:并查集:1.将两个集合合并2.询问两个元素是否在一个集合当中基本原理:每个集合用一棵树表示树根的编号就是整个集合的编号每个节点存储其父节点,p[x]表示x的父节点#includeusingname
spaces
td
阳光男孩01
·
2023-11-27 04:04
算法
c++
数据结构
图论
C++中的访问限定符之protected
classFish{public:boolisFreshWaterFish;voidSwim(){if(isFreshWaterFish)coutusingname
spaces
td;classFish{
图灵,图灵,图个机灵
·
2023-11-27 04:01
C++编程基础
c++
C++中声明友元
要声明友元类或友元函数,可使用关键字friend,如以下示例程序所示:使用关键字friend让外部函数DisplayAge()能够访问私有数据成员#include#includeusingname
spaces
td
图灵,图灵,图个机灵
·
2023-11-27 04:00
C++编程基础
c++
jvm常用调优参数
ENVJAVA_OPTS“-server-Xms9216m#设置堆的最小空间大小,默认为物理内存的1/64-Xmx9216m#设置堆的最大空间大小,默认为物理内存的1/4-XX:Meta
spaceS
ize
chai1230
·
2023-11-27 02:47
JVM
二值矩阵求连通域
#include#include#includeusingname
spaces
td;structPoint{intr;intc;Point(intr_,intc_):r(r_),c(
可乐0221
·
2023-11-27 02:25
【华为OD】B\C卷真题 100%通过:需要打开多少监控器 C/C++实现
当且仅当在当前车位或者前后左右四个方向任意一个车位范围停车时,监控器才需要打开;给出某一时刻停车场的停车分布,请统计最少需要打开多少个监控器;输入描述第一行输入m,n表示长宽,满足1#includeusingname
spaces
td
五木大大
·
2023-11-27 01:18
华为OD_ABCD真题
算法
华为od
c++
c语言
数据结构
动态规划
冒泡排序,迈开跑路第一步
#include#includeusingname
spaces
td;intmain(){intarr[]={7,8,6,3,2,4,8,6,5,1};intlen=sizeof(arr)/sizeof(
3D_vision
·
2023-11-27 00:50
算法
数据结构
排序算法
JVM-基础
:通过-XX:PermSize来设置永久代初始分配空间,默认值是20.75m-XX:MaxPermSize来设定永久代最大可分配空间,32位是64m,64位是82mjdk8及之后:通过-XX:Meta
spaceS
ize
ZHAOXING_ME
·
2023-11-27 00:02
jvm
【c++】函数对象
函数对象使用特点:函数对象在使用时,可以像普通函数那样调用,可以有参数,可以有返回值函数对象超出普通函数的概念,函数对象可以有自己的状态函数对象可以作为参数传递#include#includeusingname
spaces
td
StudyWinter
·
2023-11-27 00:29
C&C++记录学习
STL
仿函数
2019-03-10 Pell数列
#include#includeusingname
spaces
td;constintmaxn=1000000+10;intans[maxn];intwork(intm){if(ans[m]!
桐桑入梦
·
2023-11-27 00:43
电子学会C/C++编程等级考试2021年03月(三级)真题解析
C/C++等级考试(1~8级)全部真题・点这里第1题:找和为K的两个元素在一个长度为n(nusingname
spaces
td;intmain(){inta[1000],n,k,i,j,f=0;cin>
码农StayUp
·
2023-11-26 22:38
算法
c++
图论
青少年编程
等级考试
电子学会
C++11的线程
下面是创建线程的示例:#include#includeusingname
spaces
td;voidfunc(){cout#include#includeusingname
spaces
td;voidfunc
铲灰
·
2023-11-26 22:31
深入应用C++11
开发语言
c++
C++复制构造函数和移动构造函数的性能速度对比
测试代码如下:#include#include#include#include#includeusingname
spaces
td;classPerson{private:intage;stringname
cuijiecheng2018
·
2023-11-26 22:29
C++
c++
C++拷贝构造函数与移动构造函数
#includeusingname
spaces
td;classdemo{public:demo():num(newint(0)){coutusingnamespa
guobaoteacher
·
2023-11-26 22:59
C++
c++
开发语言
拷贝构造函数和移动构造函数的区别
具体如下:#includeusingname
spaces
td;classA_class{public:int*data_pointer;intn;A_class(i
skk1faker
·
2023-11-26 22:56
c++
c++
第三届传智杯初赛
A.课程时间A-课程报名-洛谷https://www.luogu.com.cn/problem/T160507依照题意模拟即可AC代码:#includeusingname
spaces
td;intn,v,
小菜锅刷题日记
·
2023-11-26 22:32
算法
c++
图论
模拟
dfs
传智杯初赛A~D题解
author:leimingze*/#includeusingname
spaces
td;constdoublepi=acos(-1);constdoubleeps=1e-7;constintbase=131
leimingzeOuO
·
2023-11-26 22:57
算法
C++
算法
c++
数据结构
上一页
120
121
122
123
124
125
126
127
下一页
按字母分类:
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
其他