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
unordered_map自定义排序
#include#include#include#includeusingname
spaces
td;intmain(){unordered_mapm;vector>vec;for(inti=0;i(1,3
匿名了匿名了
·
2023-12-30 05:45
c++
算法
哈希算法
SoniTranslate
示例效果官方在线运行地址:https://huggingface.co/
spaces
/r3gm/SoniTranslate_translate_audio_of_a_video_content环境配置gitclone
FakeOccupational
·
2023-12-30 04:44
深度学习
音视频
《C/C++/Java/Pascal 程序设计基础》习题集 解题3
输入格式:输入分别在2行中给出2个整型数组,每行先给出正整数N(#include#include#include#include#includeusingname
spaces
td;intmain(
hongiii
·
2023-12-30 04:58
pat
STL——遍历算法
for_each(iteratorbeg,iteratorend,_func);——//遍历算法遍历容器元素;beg开始迭代器;end结束迭代器;_func函数或者函数对象#includeusingname
spaces
td
宝马金鞍901
·
2023-12-30 03:14
c++
开发语言
C++语言程序设计第五版 - 郑莉(第七章课后习题)
#includeusingname
spaces
td;classShape{public:virtualfloatgetArea()=0;//纯虚函数Shape(){}//构造函数不能是虚函数virtual
哼べ要伱管
·
2023-12-30 02:32
C++习题答案
c++
开发语言
数据结构
经验分享
数据结构学习--顺序表的代码实现(C++)
以下代码为使用C++完成顺序表的静态实现后面会尝试顺序表的动态实现顺序表的销毁还不会实现,待后面的深入学习再来补充#includeusingname
spaces
td;#definemaxSize10structsqlList
卡夫卡是也
·
2023-12-30 02:32
数据结构
C++ bitset类验证总结 存储结构 输出顺序
1bitset的定义和初始化#includeusingname
spaces
td;typedefbitsetbyte;typedefbitsetword;//之后就可以使用byte和word来定义8和32
敲不好代码的小透明
·
2023-12-30 02:02
C++
c++
算法
第一部分 C++语言 --> 第二章 顺序结构程序设计
第二节常量和变量2067【例2.5】圆#includeusingname
spaces
td;intmain(){doubler,d,c,s;//小数类型,double类型定义cin>>r;coutusingname
spaces
td
扶摇安全实验室
·
2023-12-30 02:57
信息学奥赛代码
c++
开发语言
笔试刷题-百度2018-06-17
输入描述:首先输入一个正整数N(N#include#includeusingname
spaces
td;intmain(){intfirst=INT_MAX,second=INT_MAX,third=INT_MAX
Dodo159753
·
2023-12-30 02:20
Unity3D Texture2D 保存 加载 裁剪 缩略图 转Sprite
Texture2D保存加载裁剪缩略图转Spritename
spaceS
hangShangQian.Utility{usingSystem.IO;usingUnityEngine;publicstaticclassTexture2DUtility
萌萌的提莫队长
·
2023-12-30 01:32
unity
Texture2D
裁剪
缩略图
【c++逆向 - 2】初识类
初识类一个demo完事:#include#include#include#includeusingname
spaces
td;classStudent{enum{SEX_LEN=5};stringname
XiaozaYa
·
2023-12-30 01:01
逆向
c++
信息学奥赛一本通基础篇例4.1、例4.2、练4.1、练4.2、练4.3、练4.4答案及自编课后习题
【样例输入】无【样例输出】a=22b=20【代码实现】#include#includeusingname
spaces
td;intmain(){inta=20;intb=22;swap(a,b);cout
A3024857
·
2023-12-29 23:36
算法
c++
动态规划
YACS(上海计算机学会竞赛平台)一星级题集——星号三角阵(一)
数据范围1≤n≤100样例数据输入:4输出:**********代码实现#includeusingname
spaces
td;intn;intmain(){cin>>n;for(inti=1;i<=n;i
A3024857
·
2023-12-29 23:03
上海计算机竞赛
算法
数据结构
汉诺塔问题
#include#includeusingname
spaces
td;voidplace(intpla,stringfrom,stringtoo,stringother){cout">a;hannuo
zjh3029
·
2023-12-29 22:36
C++实现算法的一些巧妙点
且单词以空格划分,等遍历到第一个空格,就可以查出单词的长度了#include#includeusingname
spaces
td;intmain(){stringa;getline(cin,a);intsiz
en595
·
2023-12-29 21:47
c++
算法
开发语言
归并排序模板
#includeusingname
spaces
td;voidmerge(int*a,intlow,intmid,inthight)//合并函数{int*b=newint[hight-low+1];//用
龚立涛
·
2023-12-29 20:06
Acwing
笔记
题型
算法
排序算法
数据结构
STL库和二分保龄球
实现步骤通过map记录每个位置的保龄球数1.for循环中ma[a]=i把坐标定义进去2.第二个for循环ma[m]把数值代入ma函数,最后输出的就是其下标代码#include#includeusingname
spaces
td
2301_81102850
·
2023-12-29 19:14
c++
算法
数据结构
递归---选数
定义bool值判断是否为素数代码#include#includeusingname
spaces
td;boolisp
2301_81102850
·
2023-12-29 19:14
深度优先
图论
算法
结构体--高考数组
组数组的平均值并输出最大的两个思路先求出其平均值再结构体进行比较,输出前两个最大值算法一:结构体实现步骤定义结构体,进行平均值的比较,给数据定义下标,sort进行递增排序,输出前两个最高的必要性代码#includeusingname
spaces
td
2301_81102850
·
2023-12-29 19:13
高考
学习笔记:拓扑排序c++两种模板
https://www.luogu.com.cn/problem/P4017模板一(类似于广搜,平常大多用的都是广搜):#include#include#include#includeusingname
spaces
td
玛卡左家陇分卡
·
2023-12-29 18:25
个人记录
洛谷-java题解
洛谷
c++
学习
开发语言
拓扑学
排序算法
282. 石子合并
所以还是得加上原题链接题意给定多个元素,每一次把可以把相邻的两个元素合并,两个元素合并的和做一个累加,这个累加的结果作为答案,最后数组里面只剩下一个元素,结束操作,求答案的最小值输入41352输出22数据范围nusingname
spaces
td
三冬四夏会不会有点漫长
·
2023-12-29 17:09
动态规划
算法
ZZULI OJ 1128: 课程平均分 C++ (带你看懂每一步)
输入第一行是两个整数m和n,表示本班的人数和本学期课程数目,0usingname
spaces
td;doublea[1001][11];//a数组记入数据doubleb[11]={0};
挑不动
·
2023-12-29 16:11
ZZULIOJ
(C++)
c++
算法基础之石子合并
石子合并核心思想:区间dp集合定义:f[i][j]表示将[i,j]合并的最小代价集合计算:枚举i#include#includeusingname
spaces
td;constintN=310;intf[
阳光男孩01
·
2023-12-29 14:09
算法
数据结构
c++
图论
开发语言
算法基础之计数问题
1000种特别地,当枚举数字0时(找第4位为0的数)前三位不能从000开始了否则没这个数不合法(有前导零)xxx==abc2.1.d1,yyy=000~999共1000种#includeusingname
spaces
td
阳光男孩01
·
2023-12-29 14:36
算法
数据结构
c++
开发语言
算法基础day1
归并排序模版#includeusingname
spaces
td;intn;constintN=1e6+10;intq[N],tmp[N];voidmerge_sort(intl,intr,intq[])
m0_59519985
·
2023-12-29 13:09
算法基础
算法
c++
算法基础day2
前缀和#includeusingname
spaces
td;constintN=100010;intn,m;inta[N],s[N];intmain(){scanf("%d%d",&n,&m);for(inti
m0_59519985
·
2023-12-29 13:09
算法基础
算法
k8s(kubernetes)中kubectl使用
1,查看日志kubectlgetpod--all-name
spaces
|grepadapterkubectllogs-f--tail=10test-adapter-6455f9946c-gwjr7kubectllogsengine-test-service-worker
CStart
·
2023-12-29 11:03
BZOJ-1026: [SCOI2009]windy数(数位统计)
不使劲对拍的话死活A不了555代码:#include#include#includeusingname
spaces
td;#definerep(i,x)for(lli=0;i=2){pre[now][i]
AmadeusChan
·
2023-12-29 10:27
52(2023.12.23)(洛谷排序,第k大)
#includeusingname
spaces
td;intmain(){intarr[1000]={};intn,m;cin>>n>>m;intnumber;for(inti=0;i>number;arr
要成为编程高手的Yu
·
2023-12-29 10:53
算法
数据结构
排序算法
53(2023.12.26)(烤鸡,三连击)
#includeusingname
spaces
td;#includeintarr[20000]={};intmain(){intn,h;cin>>n>>h;intnumber;for(inti=0;i=
要成为编程高手的Yu
·
2023-12-29 10:53
算法
数据结构
54(2023.12.27)(数码,最大乘积,帮派)
#includeusingname
spaces
td;#includeintarr[100001]={};structzu{intm_Num1;intm_Num2;};intmain(){intnum1,
要成为编程高手的Yu
·
2023-12-29 10:53
算法
数据结构
55(2023.12.28)(选数)选不出来
#includeusingname
spaces
td;inttest(intn,intk){inttest=1;for(inti=n;i>=n-k;i--){test*=i;}for(inti=k;i>=
要成为编程高手的Yu
·
2023-12-29 10:51
算法
数据结构
排序算法
lc21-合并两个有序链表
#include#includeusingname
spaces
td;typedefstructnode{intdata;node*next;}linklist;linklist*mergeTwoLists
何偶丶
·
2023-12-29 10:17
引用+函数扩充+结构体
1.把课堂上的结构体类型改为class类型#includeusingname
spaces
td;classstu{doublesorce=50.1;intage=18;charsex='m';inttall
linklzhl
·
2023-12-29 10:21
c++
类。。。。
#includeusingname
spaces
td;classperson{int*age;string&name;public:person(string&a):age(n
linklzhl
·
2023-12-29 09:47
c++
简单计算器
#include#include#includeusingname
spaces
td;constintmaxn=10005;intmain(){intsum=0,a=0,b=0;charc;cin>>a;
AlanCong
·
2023-12-29 08:20
opencv c++圆检测
#include#includeusingname
spaces
td;intmain(){cv::Matimg=cv::imread(".
吴天德少侠
·
2023-12-29 08:20
opencv
opencv
c++
人工智能
C++类与对象【再出发】| 类的六大默认成员函数
⭐️初识构造函数#includeusingname
spaces
td;classD
月华zyc
·
2023-12-29 08:38
c++
开发语言
程序人生
改行学it
笔记
蓝桥圣诞树(C++)
示例代码:#include#includeusingname
spaces
李玉洁++
·
2023-12-29 07:28
题目
算法
c++
C++day3作业
#includeusingname
spaces
td;classPerson{int*age;string&name;public://Person()//{//}Person(inta,string&b
傻猪猪一枚
·
2023-12-29 07:51
c++
开发语言
【第十一课】数组模拟栈和队列 / 单调栈 / 单调队列(滑动窗口) (c++代码 / 思路 )(acwing-828,829,830,154)
代码如下#includeusingname
spaces
t
小w_
·
2023-12-29 07:02
算法基础
算法
c++
数据结构
【第九课】离散化(acwing-802区间和 / c++代码 / 思路超详解 )
目录acwing-802区间和离散化算法思想本题思路代码如下代码思路一些解释1.pair2.typedef3.二分查找4.for(inti=1;i#include#includeusingname
spaces
td
小w_
·
2023-12-29 07:31
算法基础
算法
c++
C++ cout输出中文信息乱码问题解决
完整代码如下:#include#includeusingname
spaces
td;classStudent{public:stringname;int
一个与程序bug抗争的程序员
·
2023-12-29 07:02
c++
多态-多态的基本概念-类和对象
多态的基本#includeusingname
spaces
td;//动物类classAnimal{public:virtualvoidSpeak(){cout<<"动物在噢噢叫"<
天天@写代码
·
2023-12-29 06:47
c++
开发语言
多态案例二-制作饮品
#includeusingname
spaces
td;classAbsstractDrinking{public://煮水virtualvoidBoil()=0;//冲泡virtualvoidBrew()
天天@写代码
·
2023-12-29 06:47
c++
开发语言
类和对象_函数的分类以及调用
创建的构造函数有1.无参构造函数2.有参构造函数3.拷贝构造函数构造函数的调用方式有1.括号调用法(常用)2.显示调用法3.隐式调用法代码示例如下#include#includeusingname
spaces
td
天天@写代码
·
2023-12-29 06:17
c++
算法
开发语言
求100到999之间的水仙花数
个位数字的三次方)+(十位数字的三次方)+(百位数字的三次方)的和等于他本身,这样的数字称之为水仙花数;例如1531*1*1+5*5*5+3*3*3=153代码直接上手#includeusingname
spaces
td
天天@写代码
·
2023-12-29 06:47
c++
算法
一维数组逆序排序C++
将一维数组的所有元素依次逆序交换并输出到屏幕上;#includeusingname
spaces
td;intmain(){intarr[]={1,2,3,4,5,6,7,8,9,10};intsz=sizeof
天天@写代码
·
2023-12-29 06:47
c++
算法
数据结构
1580 能量项链
#includeusingname
spaces
td;constintmaxn=99999999;intf[110][110],head[110],tail[110];intmain(){intn,i,j
以轻武烈
·
2023-12-29 06:16
算法
c++
数据结构
3155 多重背包
方法一转化为普通的01背包思路:把每种有n个的物品看成是n件一个物品,转化为01背包#includeusingname
spaces
td;intf[5005],n,m,w[2005],v[2005],cnt
以轻武烈
·
2023-12-29 06:16
算法
c++
数据结构
上一页
93
94
95
96
97
98
99
100
下一页
按字母分类:
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
其他