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
1270. 数列区间最大值(线段树)
数列区间最大值若数据较大,用暴力方法可能会超时建立线段树,改变每个线段区间的最大值每次访问[x,y]时判断[x,y]在区间的位置,是否需要再进入子区间#include#include#includeusingname
spaces
td
水深00安东尼
·
2024-01-14 15:52
数据结构
算法
数据结构
L2-042 老板的作息表
L2-042老板的作息表将时间转换为秒,暴力解#include#include#include#includeusingname
spaces
td;constintN=24*3600+10;intbook
水深00安东尼
·
2024-01-14 15:52
天梯赛
c++
算法
c语言
最小生成树的两种方法——Kruskal算法和Prim算法
#include#include#include#includeusingname
spaces
td;#defineINFINITE0xFFFFFFFF#defineVertexDataunsignedint
Y_U_
·
2024-01-14 15:35
编写一个程序计算100以内的smith数,smith数的概念: 一个非素数,其各位数之和等于其所有质因数的个位数之和。 例如:4=2*2,4=2+2
例如:4=2*2,4=2+222=2*112+2=2+1+127=3*3*32+7=3+3+3*/#includeusingname
spaces
td;intm=0;//定义全局变量inta[100],b
zzy_1988
·
2024-01-14 15:10
C++
QT中自己实现DLL及调用
Libary2.选择共享库工程如下:3.编写源码(1)dll.h文件#ifndefDLL_H#defineDLL_H#include"dll_global.h"#include#includeusingname
spaces
td
AI+程序员在路上
·
2024-01-14 15:40
QT系列
qt
开发语言
C++运算符和表达式
::条件表达式大小写转换在C++中,您可以使用一些函数来实现大小写转换,比如:#include#include#includeusingname
spaces
td
贪心的猫
·
2024-01-14 14:33
c++
Chapter 7 类和对象的特性(下篇)
可以被指定为private、public、protected2.在使用成员函数时,要注意访问属性,在后面我们会提到3.类外定义成员函数和类里定义成员函数的区别在类外:#includeusingname
spaces
td
派大星的沙漠孤狼
·
2024-01-14 14:29
c++
开发语言
01循环算法
0usingname
spaces
td;intmain(){intn,a,b;cin>>a>>b>>n;for(inti=1;is=(s%m+a%m)%m这个语句一直循环b次voidtext01(){inta
pointers_syc
·
2024-01-14 13:06
蓝桥杯算法
算法
PAT 1163 Dijkstra Sequence(30)
1163DijkstraSequence题目代码参考代码复现代码参考文章注意123题目代码参考代码//相等的时候有多种取法,逐一判断#includeusingname
spaces
td;intinf=0x7f7f7f7f
此杭非彼航
·
2024-01-14 13:35
PAT题目练习
图论
算法
针对CSP-J/S的冲刺练习:Day 4 提高题
一个正整数n,表示矩阵变长的长度输出描述共n行,每行n个正整数,表示n*n的螺旋矩阵样例输入5输出12345161718196152425207142322218131211109提示1usingname
spaces
td
AICodeThunder
·
2024-01-14 13:33
C/C++
算法
矩阵
[蓝桥杯 2013 省 AB] 错误票据
输入格式一个整数�(�usingname
spaces
td;intmain(){
EternalLBZ
·
2024-01-14 13:02
蓝桥杯
算法
02二位数组算法
1.杨辉三角算法思想:a[i][j]=a[i-1][j]+a[i-1][j-1];代码:#includeusingname
spaces
td;constintN=1e2+10;inta[N][N];intmain
pointers_syc
·
2024-01-14 13:27
蓝桥杯算法
算法
c++
数据结构
【洛谷千题详解】P1980 [NOIP2013 普及组] 计数问题
#includeusingname
spaces
td;intmain(){intn,x,ans=0;cin>>n>>x;for(inti=1;i<=n;i++){intnumber
爱编程的小芒果
·
2024-01-14 13:22
【洛谷千题详解】
算法
c++
数据结构
【洛谷千题详解】P7072 [CSP-J2020] 直播获奖
输入样例:10602003004005006006000300200100输出样例:200300400400400500400400300300#includeusingname
spaces
td;intmain
爱编程的小芒果
·
2024-01-14 13:49
【洛谷千题详解】
算法
c++
图论
算法.n皇后问题
#includeusingname
spaces
td;constintN=10;chara[N][N];boolb[N],c[N],d[N];intn;voiddfs(intu){if(u==n){for
丰海洋
·
2024-01-14 12:09
算法
算法
深度优先
图论
codeforces(C++ Summation Game)
题目:翻译:思路:1、将数据从大到小排序2、用前缀和3、每次用总和减去2倍的乘-1的数,求最大值代码:#include#includeusingname
spaces
td;voidsolve(){intn
取名真难.
·
2024-01-14 12:42
codeforces
c++
开发语言
codeforces (C++ Satisfying Constraints)
约束条件的个数4、max-min+1减去约束条件3的个数,即为最终答案5、如果min大于max,则结果为0,不存在满足约束条件的数代码:#iclude#include#includeusingname
spaces
td
取名真难.
·
2024-01-14 12:10
codeforces
算法
c++
数据结构
C++深拷贝(含有子类数据的)父类指针到新的父类指针
#include#includeusingname
spaces
td;classA{public:A(){cout(Bb);*this=*bb;}~B(){coutc="fyu";b0->a=432;b0
孤高丶逛侠
·
2024-01-14 11:13
c++
开发语言
C++ 并发编程 | 管理线程
、启动线程线程是通过构造std::thread对象来开始的,该对象指定了线程上要运行的任务,std::thread可以与任何可调用类型一起工作,例如:#include#includeusingname
spaces
td
MessiGo
·
2024-01-14 10:46
c++
开发语言
C/C++ 冒泡排序
第一题:排序4,3,5,2,1从小到大#include//冒泡排序usingname
spaces
td;intmain(){inta[5]={4,3,5,2,1};inti,j,tmp;for(i=0;ia
小小小CTFER
·
2024-01-14 09:08
大一新生C/C++入门程序作业
c++
c语言
java
大学期末考前复习卷(上)
【输入形式】1.70.1【输出形式】sin(x)=0.99949代码:#includeusingname
spaces
td;intmain(){doublex,
小小小CTFER
·
2024-01-14 09:37
大一新生C/C++入门程序作业
算法
第 3 场 小白入门赛(1~6) + 第 3 场 强者挑战赛 (1 ~ 5)
#includeusingname
spaces
td;#defineLLlonglong
今天补题了么
·
2024-01-14 08:29
算法
数据结构
c++
蓝桥杯
第 3 场 蓝桥杯小白入门赛 解题报告 | 珂学家 | 单调队列优化的DP + 三指针滑窗
A.召唤神坤思路:前后缀拆解#include#include#includeusingname
spaces
td;intmain(){//请在此输入您的代码intn;cin>>n;vectorarr(n)
珂朵莉MM
·
2024-01-14 08:21
蓝桥杯
解题报告
算法
力扣
蓝桥杯
数据结构
java
贪心算法
c++
KY43 全排列
全排列板子ti#includeusingname
spaces
td;strings;mapmp;voidswap(char&a,char&b){charem=a;a=b;b=em;}voiddfs(intn
QingQingDE23
·
2024-01-14 07:42
算法
1295. X的因子链(数论/求1~N的所以质因子)
题目:1295.X的因子链-AcWing题库输入样例:23410100输出样例:1111212246思路:代码:#include#include#include#includeusingname
spaces
td
hz2.0
·
2024-01-14 07:09
数论
数据结构
1050. 鸣人的影分身(dp划分)
题目:1050.鸣人的影分身-AcWing题库输入样例:173输出样例:8思路:代码:#includeusingname
spaces
td;constintN=20;intf[N][N];intmain(
hz2.0
·
2024-01-14 07:09
dp
算法
c++
1047. 糖果(dp/背包问题(选择问题))
题目:1047.糖果-AcWing题库输入样例:5712345输出样例:14思路:代码:#include#include#includeusingname
spaces
td;constintN=110;intf
hz2.0
·
2024-01-14 07:09
dp
算法
1222. 密码脱落(dp划分)
题目:1222.密码脱落-AcWing题库思路:代码:#include#includeusingname
spaces
td;constintN=1010;intf[N][N];//表示以L和R为两端点的字符串的
hz2.0
·
2024-01-14 07:33
dp
算法
c++
数据结构
C++笔记
1.输入输出流在C中要想输入和输出我们会经常用到#include在C++中头文件的命名风格不用.h#includeusingname
spaces
td;为什么要用上面俩句话的解释(自己写的博客)c++中为什么要写
pointers_syc
·
2024-01-14 07:48
C++笔记
c++
笔记
算法
信息学竞赛中的数学 习题集 481-490(10题)
*/#includeusingname
spaces
td;intzuoye(intn){if(n==7)return1;elsereturnzuoye(n+1)+1;}intmain(){cout#includeusingname
spaces
t
dllglvzhenfeng
·
2024-01-14 07:16
科普
程序猿的数学
小学生C++趣味编程
算法
c++
数据结构
程序员的数学
信奥中的数学
信息学竞赛中的数学
CSP-J
Zero-complexity Transposition上交复试机考题目
#includeusingname
spaces
td;intmain(){intn,a[100000000];cin>>n;for(inti=0;i>a[i];}cout0){cout&
温暖名字
·
2024-01-14 05:41
pat
c++
开发语言
寒假刷题第四天
PTA甲级1017QueueingatBank可以使用小顶堆模拟窗口的情况,一定是最小的时间的窗口先空出来#include#include#include#includeusingname
spaces
td
xp_xht123
·
2024-01-14 03:18
深度优先
算法
图论
寒假刷题记录,第三天
PTA甲级1009ProductofPolynomials多项式乘法#include#include#include#includeusingname
spaces
td;constintN=1010;intn
xp_xht123
·
2024-01-14 03:48
算法
数据结构
寒假刷题第五天
PTA甲级1022DigitalLibrary大模拟#include#include#include#include#includeusingname
spaces
td;unordered_map>ti,
xp_xht123
·
2024-01-14 03:44
数据结构
简单的天天酷跑小游戏实现
include"tools.h"#include#include#include//时间头文件#include//随机数文件#pragmacomment(lib,"winmm.lib")usingname
spaces
td
坑真多
·
2024-01-14 03:11
visual
studio
c++
游戏
c语言
【蓝桥备赛】wzy的数组Ⅱ——简单莫队问题
参考代码C++#includeusingname
spaces
td;typed
lcx_defender
·
2024-01-14 03:26
#
蓝桥
算法
java
数据结构
蓝桥杯
c++
笔记
C++c查找最值
123456789101112131415161718192021222324252627282930313233343536371、#include//因为使用system("pause");#include//因为使用cin、cout、usingname
spaces
td
weixin_34107955
·
2024-01-14 02:48
c/c++
区间最值(C++) kkmd66
每组数据,第一行为一个n,1#include#include"vector"usingname
spaces
td;classarr{public:intm_da
kkmd66
·
2024-01-14 02:18
OJ
c++
算法
c语言
XTU OJ 1329 连分式
题目就不复制了,直接上代码核心是找到递推公式,保证每次分子分母都是整数#includeusingname
spaces
td;#definelllonglongllgcd(lla,llb){if(b==0)
矜(bai)持(gei)的云拏
·
2024-01-14 02:56
XTU
OJ
c++
算法
数据结构
博弈类问题
先手":"后手";}#include#includeusingname
spaces
td;stringcompute(intn){returnn%6!=0?"Octoberwins!"
天穹南都
·
2024-01-14 02:15
算法
c++
数据结构
C++11 14 17线程
线程类封装#include#include#includeusingname
spaces
td::chrono_literals;classMyThread{public:voidMain(){std::
天穹南都
·
2024-01-14 02:44
c++
开发语言
C++(20):list通过erase, erase_if删除元素
iteratorlast);1.通过迭代器删除指定位置元素需要说明的是,删除元素后,迭代器会失效,可以通过erase返回下一个有效的迭代器#include#include#includeusingname
spaces
t
风静如云
·
2024-01-14 00:17
C/C++
c++
C++ 【命名空间-“using namespace std“】
`usingname
spaces
td;`的作用4.为什么要少用`usingnamespace`5.如何用命名空间避免命名冲突?
Answer-2296
·
2024-01-14 00:10
c++
c语言
开发语言
C++多线程学习[三]:成员函数作为线程入口
一、成员函数作为线程入口#include#include#includeusingname
spaces
td;classMythread{public:stringstr;voidTest(){cout#
Rain_ZZX
·
2024-01-14 00:06
多线程学习
c++
学习
C++多线程学习[二]:线程的传参以及传参的一些坑
一、线程的传参#include#include#includeusingname
spaces
td;voidthreadtest(inta,doubleb,stringstr){this_thread::
Rain_ZZX
·
2024-01-14 00:36
多线程学习
c++
学习
开发语言
C++重新认知:namesapce
0、引言为什么要用到命名空间想必我们在写C++语言时经常在main.cpp文件内写下usingname
spaces
td这句代码,这句代码有何作用呢?其实写上这句代码后,我们就会使用std的命名空间。
Rain_ZZX
·
2024-01-14 00:33
C++重新认知系列
c++
开发语言
使用二元谓词加函数绑定器实现vector中的快速搜寻算法find_if
#include"stdafx.h"#include#include#include#includeusingname
spaces
td;typedefstruct_Node{intiHid;std::stringstrName
ShaYQ
·
2024-01-13 23:19
C++
c++
二元谓词
函数绑定器
STL模板
find_if
P2383 狗哥玩木棒 约翰玩木棒
每行的第一个数为m(4#includeusingname
spaces
td;constintN=1000;intn,m;ints[N];inteval;//边长平
大白话_NOI
·
2024-01-13 23:24
NOI
蓝桥杯C++
C++基础知识
算法
c++
数据结构
c++11特性(五)性能提升
定义别名模版的别名可调用对象包装器和绑定器可调用对象可调用对象包装器基本用法作为回调函数使用绑定器使用方式使用示例扩展friendfriend的概念及用法friend使用示例类模版声明友元using看到using大家应该很熟悉吧,usingname
spaces
td
钢钢钢很不爽
·
2024-01-13 23:19
C++语言
c++
开发语言
牛客小白月赛84 解题报告
牛客小白月赛84题目链接:https://ac.nowcoder.com/acm/contest/72389A题题目大意略解题思路签到代码#includeusingname
spaces
td;usingll
bughunter-
·
2024-01-13 22:35
算法&数据结构
算法竞赛
算法
上一页
76
77
78
79
80
81
82
83
下一页
按字母分类:
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
其他