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
第三届“传智杯”全国大学生IT技能大赛(初赛B组题解)
AC代码#includeusingname
spaces
td;typedeflonglongll;voidsolve(){intn,v,m,a;intcnt=0,ans=0;scanf("%d%d%d%d
星空皓月
·
2023-11-26 22:56
比赛
代码随想录算法训练营 ---第四十四天
代码实现:#include#includeusingname
spaces
td;inttest_bag(vectorweight,vectorvalue,intbagWeight){vectordp(bagWeig
Gemn 1
·
2023-11-26 21:46
算法
2019-03-11 八皇后问题
#include#include#includeusingname
spaces
td;constintmaxn=100;intvis1[maxn],vis2[maxn],vis[maxn];inta[maxn
桐桑入梦
·
2023-11-26 20:11
贪心算法——1231:最小新整数
1231:最小新整数时间限制:1000ms内存限制:65536KB提交数:6074通过数:3375【题目描述】给定一个十进制正整数n(0usingname
spaces
td;structnum{strings
8yyy
·
2023-11-26 20:35
一本通
贪心算法
算法
求正整数n的因数之和
constintMAXN=1000000;intarr[MAXN+5];//arr[n]保存整数n的因数之和(不包含n本身)voidsum_factor(){for(inti=1;iusingname
spaces
td
lalalademaxi
·
2023-11-26 20:33
acm教学
acm
c++随笔-删除文件
代码如下:#include#includeusingname
spaces
td;intmain(){if(remove("文件名")==0){cout<<"删除成功";}else{cout<<"删除失败"
“吉祥”物
·
2023-11-26 20:00
随笔
c++
C++stl-set查找和统计
//查找key是否已经存在,若存在,返回该键的元素的迭代器,若不存在,返回set,end();count(key);//统计key的元素个数代码示例:#include#includeusingname
spaces
td
黑马金牌编程
·
2023-11-26 18:59
C++STL
C++
stl
set
PTA天梯赛-N个数求和(20分)
题目c++参考代码#include#include#includeusingname
spaces
td;typ
贫僧欲与师太论道
·
2023-11-26 17:39
算法
c++
开发语言
C++洛谷P5661,[CSP-J2019]公交换乘题解+de小bug
Code:#include#includeusingname
spaces
td;structpiao{intp;intt;};piaoa[100005];intn;intby,p
Jabstick
·
2023-11-26 17:25
CSP-J2019
c++题解·
算法小讲
CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) A-C
分别有n个和m个宝可梦,设宝可梦a和宝可梦b相互攻击两方战力在攻击后会变为a-b,b-a,战力小于等于0时宝可梦会消失,问谁会赢题解显而易见,直接比较战力总和即可代码#includeusingname
spaces
td
_866
·
2023-11-26 17:19
c语言
开发语言
c++实现复数计算器
求两个复数的和;3)求两个复数的差;4)求两个复数的乘积;5)求复数的实部;6)求复数的虚部代码实现:#define_CRT_SECURE_NO_WARNINGS#include#includeusingname
spaces
td
Merlinlb
·
2023-11-26 16:15
c++
开发语言
CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes) 题解
A.GoodPairs题意:在数组中找出两个数i,j,使得分析:只需要找最大值和最小值的下标即可code:#includeusingname
spaces
td;voidsolve(){intn;cin>>
只微
·
2023-11-26 16:14
算法
CodeTON Round 1 (Div. 1 + Div. 2, Rated, Prizes)补题
…AC代码:代码很乱,凑活着看……#include#include#include#include#include#defineN300010#defineMOD1000000007usingname
spaces
td
Syclus
·
2023-11-26 16:11
Codeforces补题
蓝桥杯
算法
c++
CodeTON Round 5 (Div. 1 + Div. 2, Rated, Prizes!) F. Tenzing and Tree(绝对值等式+树的重心性质+贡献)
题目n(n#include#include#include#include#include#includeusingname
spaces
td;constintN=5e3+10,INF=0x3f3f3f3f
Code92007
·
2023-11-26 16:40
树
绝对值等式
树的重心
枚举贡献
CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!) E. Another MEX Problem(区间dp mex性质)
题目给出一个n(n#includeusingname
spaces
td;#definerep(i,a,b)for(inti=(a);i=(b);--i)typedeflonglongll;typedefdoubledb
Code92007
·
2023-11-26 16:40
#
区间dp
区间dp
【无标题】
7-13#includeusingname
spaces
td;intbeginn[10005];//存开始时间intendd[10005];//存结束时间intmain(){intn;//总活动个数intcnt
来旺
·
2023-11-26 16:36
算法
数据结构
排序算法
4. 无向图的各连通分支
题目求解无向图的各连通分支输入:第一行为图的节点数n(节点编号0至n-1,0#include#include#includeusingname
spaces
td;//广度优先搜索函数voidbfs(intstart
榆榆欸
·
2023-11-26 16:11
数据结构与算法设计
算法
数据结构
OpenCV-高斯滤波(高斯平滑)
构建垂直方向上的高斯卷积算子;2、构建水平方向上的高斯卷积算子;3、分离的高斯卷积;OpenCV实现的高斯平滑函数:GaussianBlur()#include#include#includeusingname
spaces
td
ISP算法与图像处理
·
2023-11-26 14:30
OpenCV基础教程
卷积
opencv
计算机视觉
cv
Oracle Database-03-创建表空间和用户
1.查看当前已存在的表空间1.1表空间select*fromdba_table
spaces
;】、1.2表空间所在路径select*fromdba_data_files;3.用户select*fromdba_users
香辣素毛肚
·
2023-11-26 14:27
oracle
oracle
database
sql
OpenCV中的5种平滑滤波操作
在OpenCV中共有5种平滑滤波操作,分别是以下几种:实验测试代码如下:#include#includeusingname
spaces
td;usingnamespacecv;intmain(){MatsrcImage
hcwvip6
·
2023-11-26 14:26
笔记
opencv
计算机视觉
c++
C++多态
函数重载和运算符重载属于静态多态,复用函数名动态多态:派生类和虚函数实现运行时多态静态多态的函数地址早绑定-编译阶段确定函数地址动态多态的函数地址晚绑定-运行阶段确定函数地址#includeusingname
spaces
td
想要成为数据科学家的菜鸟
·
2023-11-26 14:02
C
c++
C++文件操作解析及使用(读、写文件 使用文件指针)
操作的时候要使用头文件包含了很多标准库下面是测试代码创建文件并往文件中写入内容当文件夹中没有下面的文件时会创建,并且会覆盖原文件重新写入一般是创建在编译器的那个文件夹里#include#include#include#includeusingname
spaces
td
showswoller
·
2023-11-26 14:00
C++
c++
开发语言
蓝桥杯
C++文件操作
写操作ifstream读操作fstream读写操作文本文件包含头文件#include创建流对象ofstreamofs;打开文件ofs.open(”文件路径“,打开方式);写数据ofsusingname
spaces
td
想要成为数据科学家的菜鸟
·
2023-11-26 14:30
C
c++
cocoa
开发语言
Oracle数据库语句大全
一.入门部分创建表空间createtable
spaces
chooltbsdatafile‘D:\oracle\datasource\schooltbs.dbf’size10Mautoextendon;删除表空间
softshow1026
·
2023-11-26 13:29
数据库
oracle
蓝桥杯每日一题2023.11.26
题目描述奖券数目-蓝桥云课(lanqiao.cn)将每一个数字进行一一枚举,如果检查时不带有数字4则答案可以加1#includeusingname
spaces
td;intans;boolcheck(intn
Akct
·
2023-11-26 12:04
蓝桥杯
职场和发展
Acwing--188. 武士风度的牛(BFS最短路)
#includeusingname
spaces
td;typedefpairPII;constintN=155;charg[N][N];//boolbook[160][160];intd[N][N];intdx
wowon~
·
2023-11-26 10:00
搜索技术
最短路
宽度优先
算法
【AcWing】188. 武士风度的牛
#include#include#include#includeusingname
spaces
td;constintmaxn=233;typedefstruct{intx,y;}P;intn,m;chara
黑猫黑猫猫
·
2023-11-26 10:55
算法
算法
bfs
AcWing 188. 武士风度的牛
知识点:广搜李煜东的例题讲的那么难,习题确这么简单,不过这个样子也对,把最精华的东西放到例题里面好好讲讲#includeusingname
spaces
td;constintN=205;structnode
m0_73035684
·
2023-11-26 10:23
加入题解目录题解
算法
图论
AcWing 188 武士风度的牛 题解(BFS)
AcWing188武士风度的牛BFS简单应用,注意马走日就行了#includeusingname
spaces
td;constintN=200,M=N*N;#definexfirst#defineysecondtypedefpairPII
QingQingDE23
·
2023-11-26 10:23
搜索
算法
宽度优先
acwing188武士风度 BFS暴搜
暴搜不同的是这道题的偏移量不是按照普通的上下左右走,而是按照马走日,所以偏移量要自己处理一下,画图可以知道有8个方向#include#include#include#include#include#definePIIpairusingname
spaces
td
岁余冬雨
·
2023-11-26 10:20
ACM10
输入第一行是一个整型数m(m#includeusingname
spaces
td;struct
逍遥_9353
·
2023-11-26 10:06
CodeForces 3B-Lorry
直接暴力就完事了先对两种分别从大到小排序然后枚举选了几个体积为1的,选的这些肯定是价值最大的那些,用前缀和就完事了,枚举了体积为1的个数体积为2的个数自然就知道了,再加上他们的价值就是总价值#includeusingname
spaces
td
weixin_30757793
·
2023-11-26 09:41
Codeforces 3B. Lorry
#includeusingname
spaces
td;#definelllonglongpairt1[100005];pairt2[100
韵意丶布丁公主
·
2023-11-26 09:35
CF3B Lorry
CF3BLorryGreedy将两种体积的物体分类组内按价值从大往小排序枚举A物品选几个,算出B最多能选几个这样既可代码:#includeusingname
spaces
td;structnode{intrank
anliang01409077
·
2023-11-26 09:35
有n件物品(n<=13),每件物品的的花费为c[i],每个背包的容量为w,求最少要几个背包才能装下所有物品
题目#includeusingname
spaces
td;constintmaxn=15;intcnt[maxn];boolok[1>n>>w;for(i=1;i>x;x--;//x要减一!!!!
__night_
·
2023-11-26 09:08
XCPC补题
算法
[C++]最长公共子序列问题
字符串s1s2···sn的子序列可以表示为s(i1)s(i2)···s(in)(i1#includeusingname
spaces
td;constintmaxn=10000;intn;intm;strings
CGSX
·
2023-11-26 09:37
刷题之旅
算法
c++
C++最大公约数代码
#includeusingname
spaces
td;intgcd(inta,intb){if(b==0){returna;}returngcd(b,a%b);}intmain(){inta,b;cout
Galaxy银河
·
2023-11-26 09:28
C++更多语法
c++入门必备
c++
算法
开发语言
C++打印出杨辉三角
#includeusingname
spaces
td;intmain(){intn;cout>n;inta[n][n];//定义二维数组for(inti=0;i
Galaxy银河
·
2023-11-26 09:28
C++更多语法
c++入门必备
c++
算法
开发语言
C++判断一个整数是否为回文数
#include#includeusingname
spaces
td;boolisPalindrome(intx){//将整数转化为字符串strings=to_string(x);intleft=0,right
Galaxy银河
·
2023-11-26 09:28
C++更多语法
c++入门必备
c++
开发语言
蓝桥杯第2119题 特殊时间 C++ 思维暴力
0111101111011110可以符合年月日时分秒的都有4种例如1113有1113113113113111年份符合月日只有1113时分秒只有111311311311无3111c++代码#includeusingname
spaces
td
冷yan~
·
2023-11-26 09:24
蓝桥杯
暴力
数据结构
leetcode
c++
蓝桥杯
C++背包问题
#includeusingname
spaces
td;constintMAXN=1005;intN,V;intw[MAXN],v[MAXN];intdp[MAXN][MAXN];intmain(){cin
Galaxy银河
·
2023-11-26 09:24
C++更多语法
c++入门必备
c++
算法
动态规划
C++最长公共子序列问题
#include#includeusingname
spaces
td;constintMAXN=1005;intdp[MAXN][MAXN];intmain(){strings1,s2;cin>>s1>>
Galaxy银河
·
2023-11-26 09:24
C++更多语法
c++入门必备
c++
开发语言
树与二叉树——计算二叉树的双分支结点个数
;若存在左孩子则左孩子执行1,2步骤;若存在右孩子则右孩子执行1,2步骤;测试用例:ABD##E##DF##G##结果:3ABD###CE##F##结果:2代码实现:#includeusingname
spaces
td
顶锅猫
·
2023-11-26 08:42
数据结构
数据结构
二叉树
【算法笔记】求双分支节点个数
=NULL)a++;a=a+countDsonNodes(b->lchild);a=a+countDsonNodes(b->rchild);returna;}完整代码#includeusingname
spaces
td
Cuteboom
·
2023-11-26 08:35
算法
数据结构
acwing算法基础之数学知识--Nim游戏和集合Nim游戏
代码表示为,#includeusingname
spaces
td;intmain(){intn;cin>>n;intres=0;while(n--){intx;cin>>x;
YMWM_
·
2023-11-26 08:18
Acwing
C++学习
算法
游戏
记一次RocketMQ线上broker内存持续升高问题排查
RocketMQ版本5.1.0jdk版本1.8JVM启动参数-Xms46g-Xmx46g-XX:Meta
spaceS
ize=1259m-XX:MaxMeta
spaceS
ize=2517m-XX:+UseG1GC-XX
weihubeats
·
2023-11-26 07:24
#
RocketMQ
性能优化
rocketmq
快排伪代码
一、单向扫描法:#include#includeusingname
spaces
td;voidquickSort(intarr[],intp,intr){intpartition(intarr[],intp
ଳxin
·
2023-11-26 07:13
算法与数据结构
命名空间、字符串、布尔类型、nullptr、类型推导
函数重载和运算符重载(一名多用)3、引用(和指针类似)4、面向对象的特征(封装、继承和多态)5、泛式编程(安全链接,请放心跳转)6、模板编程7、STL标准模板库8、赋值操作#includeusingname
spaces
td
_小白__
·
2023-11-26 06:14
#
C++
c++
CCFCSP试题编号:202305-2试题名称:矩阵运算
#includeusingname
spaces
td;constintN=10010,D=30;longlongtmp[D][D],ans[N][N];intn,d;intQ[N][D],K[N][D],
可乐不加冰呀
·
2023-11-26 06:31
ccf-csp练习题题解
算法
c++
Huggingface
3.3
Spaces
应用程序主要用于Demo,可把AI应用部
xieyan0811
·
2023-11-26 06:20
工具
人工智能
上一页
121
122
123
124
125
126
127
128
下一页
按字母分类:
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
其他