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
作业第24篇
#includeusingname
spaces
td;intmain(){inta[110];intq,o;intn;cin>>n;for(inti=0;i>a[i];inttam=a[i];if(a[i
李余博睿(新疆)
·
2023-12-27 17:03
算法
c++
数据结构
【无标题】
#includeusingname
spaces
td;intmain(){inta[110];intn=10;intx;cin>>x;for(inti=0;i>a[i];}intsum=0;for(inti
李余博睿(新疆)
·
2023-12-27 17:33
算法
c++
数据结构
c++一级(中国电子学会)
样例输入100123.456789样例输出123.46100#include#includeusingname
spaces
td
李余博睿(新疆)
·
2023-12-27 17:33
c++
开发语言
c++整数运算(1)
#include#includeusingname
spaces
td;intmain(){intm,n;cin>>m>>n;intcnt=0;for(inti=n;m-nn){cnt++;m=m-n;}}
李余博睿(新疆)
·
2023-12-27 16:32
c++
算法
开发语言
三、C++版本OpenCV的API使用
2.OpenCV-API使用2.1图片的操作#include#include//usingnamespacecv;usingname
spaces
td;intmain(){//读取图片cv::Matimage
呆呆珝
·
2023-12-27 14:31
计算机视觉-C++版本
c++
opencv
开发语言
1096. 地牢大师(蓝桥杯/bfs宽搜求最小距离)
思路:bfs(三维)代码:#includeusingname
spaces
td;constintN=110;charp[N][
hz2.0
·
2023-12-27 13:47
bfs宽搜
蓝桥杯
宽度优先
算法
c++ map测试,插入和查询是否线程安全
结论:非线程安全现象:程序会挂掉#include#include#includeusingname
spaces
td;std::unordered_mapm;voidf(){while(1)std::cout
乡村农夫
·
2023-12-27 13:52
c++
算法
开发语言
C++-泰勒公式-自定义sin
#include#includeusingname
spaces
td;doublemy_sin(int);intmy_factorial(int);doublemyNth_power(double,int
开源大法老
·
2023-12-27 13:15
C++
c++
算法
编程维持测试系列1
1编程维持第一天:冒泡排序//注意,数组的长度需要手动传入#includeusingname
spaces
td;voidbubble_sort(int*a,intsize){//1空的输入if(a==nullptr
Optimization
·
2023-12-27 10:55
【洛谷 P1048】采药
采药(题目链接)思路典型的01背包问题,找到其状态转移方程即可代码#include#includeusingname
spaces
td;#defineLOCAL0inttim[101];intval[101
Siding
·
2023-12-27 09:53
C++对string进行大小写转换的三种方法
C++对string进行大小写转换的三种方法方法一:下标#include#includeusingname
spaces
td;intmain(){ strings="ABCDEFG"; for(inti
依星net188.com
·
2023-12-27 06:00
c++
算法
开发语言
C++基础复习1
#include#includeusingname
spaces
td;//值传递,形参的修改是影响不了实参voidswap1(inta,intb){inttemp;temp=a;a=b;b=temp;}/
CurryCoder
·
2023-12-27 05:41
day42 1226
作业1:#includeusingname
spaces
td;namespacemyspace{stringstr;}intlength(stringstr){//char*p=&str.at(0);constchar
weixin_51788918
·
2023-12-27 04:10
c++
算法
开发语言
12.5作业
#includeusingname
spaces
td;classAnimal{private:stringname;public:Animal(){}Animal(stringname):name(name
zhuyu0828
·
2023-12-27 00:19
算法
【C++】智能指针
#include#include#includeusingname
spaces
td;//动态分配内存,没有释放就returnvoidmemoryLeak1(){string*str=newstring(
炫酷的伊莉娜
·
2023-12-26 23:58
C++
c++
智能指针
内存泄漏
C++11
RAII
boost
智能指针的原理
P1217 [USACO1.5] 回文质数 Prime Palindromes题解
写一个程序来找出范围[a,b](5≤ausingname
spaces
td;boolbook[100000001];voidprime(intb){//埃氏筛选法memset(book,true,sizeof
互联网的猫
·
2023-12-26 22:13
C++
c++
STL_vector (不定长数组)
宽为2米,要在横中心线上放置半径为Ri的喷水装置,每个喷水装置的效果都会让以它为中心的半径为实数Ri(0#include#include#include//不定长数组#includeusingname
spaces
td
cjj97
·
2023-12-26 22:42
STL_vector
04-C++ 类和对象-02
1.3使用场景局部变量与成员变量重名时,使用this区分调用本类其他成员,此时this可以省略不写1.4示例#include#includeusingname
spaces
td;class
小玖工作坊
·
2023-12-26 21:52
C/C++
c++
开发语言
c语言数据结构--冒泡排序
#include#include#include#includeusingname
spaces
td;#defineMax11intmain(){intlength;cout>length;intdata
东箭武
·
2023-12-26 20:41
数据结构
c语言
c++
c语言数据结构--快速排序
#include#include#include#includeusingname
spaces
td;#defineMax11voidquicksort(int*a,intbegin,intend){if
东箭武
·
2023-12-26 20:41
数据结构
c语言
算法
c语言数据结构--选择排序
#include#include#include#includeusingname
spaces
td;#defineMax11intmain(){intlength;cout>length;intdata
东箭武
·
2023-12-26 20:40
数据结构
c语言
c++
c语言数据结构---无向图邻接表
#include#include#includeusingname
spaces
td;#defineMAX100typedefstructAnode{//子无向图intadjvex;//所指点索引structAnode
东箭武
·
2023-12-26 20:10
c语言
数据结构
开发语言
c语言数据结构--希尔排序
#include#include#include#includeusingname
spaces
td;#defineMax11intmain(){intlength;cout>length;intdata
东箭武
·
2023-12-26 20:09
数据结构
c语言
c++
算法基础之最长公共子序列
共四种情况其中中间两种会包含两个都不取的情况(去掉)但是因为取最大值有重复也没事用f[i-1][j]和f[i][j-1]表示取一个的情况即可如果是求和则必须去掉重复部分#include#include#includeusingname
spaces
td
阳光男孩01
·
2023-12-26 19:00
算法
数据结构
c++
算法基础之编辑距离
编辑距离核心思想:线性dp最短编辑距离的应用每次传两个字符串比较返回最短距离即可#include#include#includeusingname
spaces
td;constintN=15,M=1010
阳光男孩01
·
2023-12-26 19:29
算法
c++
数据结构
图论
开发语言
算法基础之最长上升子序列 II
不去遍历全部的数据(会有冗余)用vector模拟栈①如果该元素大于栈顶元素,将该元素入栈②替换掉第一个大于或者等于这个数字的那个数(二分)#include#include#includeusingname
spaces
td
阳光男孩01
·
2023-12-26 19:56
算法
c++
C++成员函数的两种实现
#includeusingname
spaces
td;classPoint{public:voidsetPoint(intx,inty)//实现setPoint函数{xPos=x;yPos=y;}voidprintPoint
你好,赵同学
·
2023-12-26 17:22
C++
c++
开发语言
C++ 类的定义和访问修饰符
类的定义#includeusingname
spaces
td;classBox{public:doublelength;//盒子的长度doublebreadth;//盒子的宽度doubleheight;/
你好,赵同学
·
2023-12-26 17:22
C++
c++
开发语言
c++ 在类中调用另一个类
#include#includeusingname
spaces
td;classPoint{public:void
你好,赵同学
·
2023-12-26 17:51
C++
c++
开发语言
学生管理系统
##代码过于简单,##作者新手,勿喷;#include#include#include#includetypedeflonglongdatestr;usingname
spaces
td;typedefstructstudent
不秃的程序猿
·
2023-12-26 17:30
c语言
c++
学生管理系统plus初始化(可保存文件到桌面)
#define_CRT_SECURE_NO_WARNINGS1#include#include#include#includetypedeflonglongdatestr;usingname
spaces
td
不秃的程序猿
·
2023-12-26 17:30
学生管理系统
C++:继承访问属性(public/protected/private)
public和protected,在类外以对象访问,就只能访问public了•公有继承(public)公有继承在C++中是最常用的一种继承方式,我们先来看一个示例:1#include2usingname
spaces
td
香烟头
·
2023-12-26 16:15
继承
C++深度解析 不同的继承方式 --- public继承(44)
示例程序:#include#includeusingname
spaces
td;classParent{};classChild_A:publicParent{};classChi
mainn
·
2023-12-26 16:45
C++入门与进阶
C++深度解析
继承方式
C++公有继承、保护继承、私有继承
C++公有继承、保护继承、私有继承先上代码保护继承简单总结私有继承简单总结公有继承官方总结保护继承官方总结私有继承官方总结其他先上代码#includeusingname
spaces
td;classAnimal
踏过山河,踏过海
·
2023-12-26 16:15
c/c++知识二次稳固
c++
开发语言
protect 继承_C++ 继承访问权限控制(public,protected,private)
#includeusingname
spaces
td;classbase{...........};classderived:access_spe
weixin_39797758
·
2023-12-26 16:44
protect
继承
codeforces 1742D
从而选择从哪下手,选择哪种复杂度的算法思路因为发现数组元素最大只有1000;所以容易想到打一个桶记录每个元素最大的位置,然后n2n^2n2遍历一遍取最大就行了ACcode#includeusingname
spaces
td
qustflypiggy
·
2023-12-26 15:39
算法
c++
数据结构
codeforces 1676 E
算是发现了,cf低分题都是思维…ACcode#includeusingname
spaces
td;usingll=longlong;boolcmp(intx,inty){returnx>y;}voidsolve
qustflypiggy
·
2023-12-26 15:39
codeforces
板刷二分
rating
1200
算法
c++
数据结构
codeforces 1872 c
遂写一篇题解巩固一下思路考虑每个障碍对最终答案做出的贡献,显然每个障碍允许最多从这个点多走(a+(s-1)/2)的距离,手玩一下即得,所以做法就是筛选n个障碍的贡献ACcode#includeusingname
spaces
td
qustflypiggy
·
2023-12-26 15:09
c++
算法
codeforces 1872D
y,定义一个合法的含有n个元素的排列仅由1~n之间的数字组成且且每个数字有且只使用一次,顺序不要求,问元素下标为x的倍数的和,减去为y的倍数的和,的最大值ACcode#includeusingname
spaces
td
qustflypiggy
·
2023-12-26 15:08
算法
c++
数据结构
codeforces 899 div2 (a,b,c)
A#include#includeusingname
spaces
td;inta[110];voidsolve(){intn;cin>>n;vectora(n+3);for(inti=1;i>a[i];intans
qustflypiggy
·
2023-12-26 15:38
c语言
算法
c++
codeforces 1850E
#include#include#include#includeusingname
spaces
td;usingll=longlong;constintM=2e5+9;lls[M];lln,c;boolcheck
qustflypiggy
·
2023-12-26 15:38
codeforces
板刷二分
rating
1200
算法
c++
数据结构
codeforces 1676F
一道练习双指针的好题题目链接题目大意给定nnn个元素的数组aaa,和正整数kkk,需要你找到一组左右边界lll&rrr,使得r−lr-lr−l最大,并且使得每一个xxx(lusingname
spaces
td
qustflypiggy
·
2023-12-26 15:36
算法
数据结构
电商福音:阿里推出人工智能换装人工智能模型
它可以根据服装的形状和纹理,自动调整服装的变形和透视,使得试穿效果更加逼真和自然1.访问https://huggingface.co/
spaces
/H
winfredzhang
·
2023-12-26 13:28
outfit
换装
阿里巴巴
人工智能
[LUOGU] 2820 局域网
题目背景某个局域网内有n(n#include#defineMAXN2005usingname
spaces
td;intm,n,w,sum;intfa[MAXN];intfnd(intx){if(x==fa
Gh0stCai
·
2023-12-26 13:23
并查集
生成树
图
C++——构造函数(定义以及调用构造函数的过程)
(分配的是栈上的空间)2.构造的特殊的成员函数,函数名和类名相同,无返回类型,可以带参数(说明构造函数可以重载)usingname
spaces
td;classT
Sweep-
·
2023-12-26 11:50
C++
c++
开发语言
visual
studio
数据结构实验4
程序填空题5-1最小生成树(普里姆算法)#include#defineMVNum100#defineMaxInt32767usingname
spaces
td;structedge{charadjvex;
Yhan涵涵
·
2023-12-26 11:56
数据结构练习
数据结构
算法
c++
c++的反射的demo
++的反射的demo一个基本例子把这个改造成:调用方不改,底层so可以改的方式一个基本例子reflection.cpp//工厂类的定义#include#include#includeusingname
spaces
td
linux内核控
·
2023-12-26 10:50
linux
c
while(cin>>a>>b)退出问题
#includeusingname
spaces
td;intmain(){inta,b;while(cin>>a>>b)cout<<(a+b)<<endl;
Giperxr
·
2023-12-26 10:32
C/C++学习
c++
2019-03-16 查找最接近的元素
#include#includeusingname
spaces
td;constintmaxn=100000+10;inta[maxn],b[10001];intupper_bound(int*A,intn
桐桑入梦
·
2023-12-26 10:48
《Mamba: Linear-Time Sequence Modeling with Selective State
Spaces
》阅读笔记
论文标题《Mamba:Linear-TimeSequenceModelingwithSelectiveState
Spaces
》利用选择性状态空间的线性时间序列建模作者AlbertGu和TriDaoAlbertGu
AncilunKiang
·
2023-12-26 09:38
论文阅读笔记
论文阅读
论文笔记
深度学习
上一页
96
97
98
99
100
101
102
103
下一页
按字母分类:
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
其他