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
各进制转换
#include#include#include#includeusingname
spaces
td;intpre,nxt;chars[1010011];inta[1010011];voidwork(){
凌那个谁雪
·
2023-11-12 14:26
算法基础
c++
算法
开发语言
贪心:绝对值不等式
货仓选址:最优的方法就是货仓在中间#include#includeusingname
spaces
td;constintN=100005;intn;inta[N];//坐标intmain(){intres
凌那个谁雪
·
2023-11-12 14:56
算法基础
算法
c++
数据结构
Qt数据库连接
defineWIDGET_H#include#include#include#includeQT_BEGIN_NAMESPACEnamespaceUi{classWidget;}QT_END_NAME
SPACEs
tructstudent
蓝天巨人
·
2023-11-12 14:16
命令模式
【题解】2023 DTS算法竞赛集训 第1次
www.luogu.com.cn/contest/143650P1319压缩技术https://www.luogu.com.cn/problem/P1319简单的签到模拟题#include//c++标准库usingname
spaces
td
Sofice小司
·
2023-11-12 13:17
算法题解
算法
动态规划
数据结构
c++ 信奥编程 1135:配对碱基链
#include#include#includeusingname
spaces
td;intmain(){chara[256];intlen;inti;gets(a);len=strlen(a);//计算字符串长度
徐新帅
·
2023-11-12 13:07
c++
c++
算法
开发语言
C++ 信奥编程 1132:石头剪子布
#includeusingname
spaces
td;intmain(){chara[101],b[101];inti,n;cin>>n;for(i=0;i>a>>b;if(a[0]=='R'&&b[0]
徐新帅
·
2023-11-12 13:06
c++
c++
算法
开发语言
c++ 信奥编程 1131:基因相关性
#includeusingname
spaces
td;intmain(){doublex;chars1[505],s2[505];cin>>y>>s1>>s2;intlen
徐新帅
·
2023-11-12 13:36
c++
c++
java
开发语言
c++ 信奥编程 1133:输出亲朋字符串
#include#includeusingname
spaces
td;intmain(){stringn;cin>>n;for(inti=0;i
徐新帅
·
2023-11-12 13:28
c++
c++
算法
开发语言
char*和string的赋值
#includeusingname
spaces
td;intmain(){char*hello="Helloworld";stringhellostr=hello;cout<
novanova2009
·
2023-11-12 12:24
c和c++程序设计
c++/visual
studio常见问题
蓝桥杯
c++
职场和发展
Error from server: Get “https://[::1]:6443/api/v1/name
spaces
/victor/resourcequotas“: dial tcp [::1]:
K8S版本[root@victor-master~]#kubectlversionClientVersion:version.Info{Major:"1",Minor:"22",GitVersion:"v1.22.15",GitCommit:"1d79bc3bcccfba7466c44cc2055d6e7442e140ea",GitTreeState:"clean",BuildDate:"2022
victorgk
·
2023-11-12 12:40
kubernetes
kubernetes
linux
tcp/ip
混合编程python与C++
model//.h#pragmaonce#include#include#include#include#include#include#include#include#includeusingname
spaces
td
dianxin2023
·
2023-11-12 12:38
opencv
c++
人工智能
大厂真题:【哈希表】美团2023秋招-小美的排列询问
1#include#includeusingname
spaces
td;intmain(){intn;cin>>n
闭着眼睛学算法
·
2023-11-12 11:17
散列表
数据结构
PTA_乙级_1086
#include#include#includeusingname
spaces
td;intreverseNum(intn){//将数字n转为字符串stringnStr=to_string(n);//翻转字符串
王佳Gre
·
2023-11-12 11:45
PTA乙级
算法
PTA_乙级_1091
#includeusingname
spaces
td;boolisTailEqual(intn,intk){stringstrN=to_string(n);//将整数n转换为字符串intklen=to_string
王佳Gre
·
2023-11-12 11:36
PTA乙级
算法
c++
开发语言
输入圆的半径和高,依次输出圆周长,圆面积,圆球表面积,圆柱体积
#includeusingname
spaces
td;intmain(){floatr,h,c,s1,s2,v;cin>>r>>h;c=2*3.14*r;s1=r*r*3.14;s2
小小曾爱读书
·
2023-11-12 09:01
C++基础代码
c++
6.1类实现立方体的体积
#includeusingname
spaces
td;classBox{private:intheight;intweight;intlength;public:Box(inta,intb,intc):height
小小曾爱读书
·
2023-11-12 09:31
1024程序员节
输入5个字母,输出为每个字母的后4位,u以后继续接a
#includeusingname
spaces
td;intmain(){chara[5];for(inti=0;i>a[i];}for(intj=0;j='a'&&a[j]='A'&&a[j]<'W')
小小曾爱读书
·
2023-11-12 09:59
C++基础代码
算法
c++
链表L->next
2020/10/26更新#includeusingname
spaces
td;structMyStruct{intdata=0;MyStruct*next;};intmain(){MyStruct*L;MyStructhead
Jcldcdmf
·
2023-11-12 07:51
数据结构与算法
数据结构基础
链表
首结点
【刷题】<洛谷> P5015 标题统计
方法#include#includeusingname
spaces
td;intmain(){stringa;
gz=zg
·
2023-11-12 06:54
数据结构与算法(C++)
c++
算法
开发语言
C++源文件中的一些固定代码的功能及含义
一:#include该行代码的作用是从C++标准库中引入这个头文件二:usingname
spaces
td;由于C++标准库中的函数和对象都是在命名空间std中定义的,所以从C++标准库中引入的头文件也是在
gz=zg
·
2023-11-12 06:24
C++
c++
C++源文件中引入头文件的三种途径
途径一:#includeusingname
spaces
td;从C++标准库中引入头文件,特点:尖括号,头文件无后缀(.h),有命名空间std而由于有命名空间std所以才有了usingname
spaces
td
gz=zg
·
2023-11-12 06:24
C++
c++
1214. 波动数列
1214.波动数列-AcWing题库思路:dpdp=划分+递归转自:AcWing1214.波动数列(有公式详细推导)-AcWing代码:#include#include#includeusingname
spaces
td
hz2.0
·
2023-11-12 06:44
dp
算法
动态规划
1210. 连号区间数(枚举)
代码:#include#includeusingname
spaces
td;constintN=10010;inta[N];intmain(){intn,res=0;cin>>n;inti,j
hz2.0
·
2023-11-12 06:44
枚举
算法
c++
数据结构
abc 从0开始的刷题记录:记录每场abc
C:对于这道题起始我刚开始还是想这么贪最合适但想来想去没有找到合理的做法于是我就决定直接暴力找因为我们对每一个数的判断均不超过len次#include#include#includeusingname
spaces
td
quark844
·
2023-11-12 05:40
atc
c++
算法
【刷题】(AtCoder Beginner Contest 328) C、D 补题
看了其他人的题解之后有一些想法所以发一篇博客C题干题目链接我的思路及做题过程我的思路是输入left、right再在这个区间内计算字母相同的对数代码是:#include#include#includeusingname
spaces
td
cat_with_cat
·
2023-11-12 05:18
刷题合集
c语言
开发语言
c++
算法
C++笔记
构造函数和析构函数构造函数深拷贝和浅拷贝初始化列表A类对象作为B类的属性静态成员成员变量和成员函数分开存储this指针空指针访问成员const修饰成员函数友元运算符重载`+`运算符重载,实现两个自定义对象的相加`usingname
spaces
td
高同学_Luka
·
2023-11-12 05:09
c++
笔记
Codeforces Beta Round 5
#includeusingname
spaces
td;intmain(){strings;intcnt=0,ans=0;while(getline(cin,s)){if(s[0]=='+')cnt++;elseif
拧错位置的螺丝钉
·
2023-11-12 03:52
Codeforces
VP
Codeforces
P1208 [USACO1.3] 混合牛奶 Mixing Milk
#includeusingname
spaces
td;typedeflonglongll;constintmaxn=5005;structnode{intp,a;}a[maxn];boolcmp(nodea
拧错位置的螺丝钉
·
2023-11-12 03:22
题解
贪心算法
P1918 保龄球
#includeusingname
spaces
td;mapp;intmain(){intn;cin>>n;for(inti=1,a;i>a,p[a]=i;intQ;cin>>Q;while(Q--){intm
拧错位置的螺丝钉
·
2023-11-12 03:22
题解
c++
算法笔记--基环树
for(inti=head[u];~i;i=edge[i].nxt){intv=edge[i].to;if(v==fa[u])continue;if(vis[v]){if(vis[v]usingname
spaces
td
weixin_33991727
·
2023-11-12 02:07
函数指针形参,并用typedef定义函数
usingname
spaces
td;//在zj函数中调用yuanxing函数,且yuanxing函数被重命名。
若无其事的苹果
·
2023-11-12 01:06
原创
函数指针形参
c++
图论 ----(图的遍历与拓扑序列)
有向图的深度优先遍历)图中点的层次(有向图的宽度优先遍历)有向图的拓扑序列树的重心(有向图的深度优先遍历)//删除节点后最大连通块集合中的最小连通块#include#include#includeusingname
spaces
td
璀璨的秋叶
·
2023-11-12 01:58
模板题
图论
c++
c语言
数据结构
算法
搜索与图论:有向图的拓扑序列—拓扑排序
拓扑排序C++模板:booltopsort(){inthh=0,tt=-1;//d[i]存储点i的入度for(inti=1;i#include#include#includeusingname
spaces
td
奋斗吧!骚年!
·
2023-11-12 01:28
#
搜索与图论
图论
c++
算法
宽度优先遍历
拓扑排序
图论-拓扑排序(有向图)
拓扑排序的两种求法:First:利用discoverTime(发现时间)&finishTime(结束时间)Second:利用入度第一种:Code:#include#include#includeusingname
spaces
td
Fight_adu
·
2023-11-12 01:55
算法
算法
图论
算法从入门到入土cpp版
1.排序1.快速排序#includeusingname
spaces
td;constintN=100010;intq[N];voidquick_sort(intq[],intl,intr){if(l>=r
你不困我困
·
2023-11-12 00:19
算法
数据结构
暑期留校——AcWing--kruskal算法模板
#include#include#include#includeusingname
spaces
td;intn,m;intINF=0x3f3f3f3f;intp[10000010];structedge{
茜茜爱敲代码
·
2023-11-11 23:28
算法
算法
图论
蓝桥杯
acwing算法基础课:最小生成树算法(Kruskal算法)
表示边数intn,m;//n是点数,m是边数intp[N];//并查集的父节点数组structEdge//存储边{inta,b,w;booloperator#include#includeusingname
spaces
td
墨染&殇泪
·
2023-11-11 23:27
acwing
算法
图论
数据结构
图论-最小生成树-kruskal算法-洛谷P3366
#includeusingname
spaces
td;intN,M;ints[1000005]={};intfind_set(intu){intr=u;while(r!
一只菜ji
·
2023-11-11 23:26
c++
算法
图论--Kruskal算法
#includeusingname
spaces
td;constintN=1e6+7;intn,m;structnode{intx,y,z;};nodea[N];intfa[N],sum,cnt;voidinit
独博为东
·
2023-11-11 23:55
算法
图论
c++
acwing算法基础之搜索与图论--floyd算法
2模板初始化:for(inti=1;iusingname
spaces
td;
YMWM_
·
2023-11-11 23:19
Acwing
C++学习
算法
图论
蓝桥杯每日一题2023.11.10
usingname
spaces
td;constintN=2e5+10;intn,k,h[N],w[N];boolcheck(intx){intpq=0;fo
Akct
·
2023-11-11 22:55
算法
蓝桥杯每日一题2023.11.11
非满分暴力写法:#includeusingname
spaces
td;constintN=2e5+10;typedeflonglongll;lla[N],s[N],n,k,ans;intmain(){cin
Akct
·
2023-11-11 22:49
蓝桥杯
职场和发展
刷题记录第二十一天-长度最小的子数组
#include#includeusingname
spaces
td;intmain(){vectornums({1,4,4});intn=nums.size();intleft=0;intright=0
onlyzzr
·
2023-11-11 22:37
每日一题
算法
c++
数据结构
刷题记录第二十二天-螺旋矩阵
#include#includeusingname
spaces
td;intmain(){vector>nums({{1,2,3,4},{5,6,7,8},{9,10,11,12}});vectorresult
onlyzzr
·
2023-11-11 22:37
每日一题
算法
c++
数据结构
刷题记录第二十四天-合并两个有序数组
#include#includeusingname
spaces
td;intmain(){vectornums1({7,8,9,0,0,0});vectornums2({1,3,6});intm=3,n=
onlyzzr
·
2023-11-11 22:01
每日一题
算法
C++:关系运算符重载及函数调用运算符调用
C++:关系运算符重载及函数调用运算符调用一、关系运算符重载#include#includeusingname
spaces
td;classPerson{public:Person(){};explicitPerson
青瓦松
·
2023-11-11 21:01
C++入门
c++
AcWing - 5287. 数量 - 组合数求解+思维
时,没有2时,排列只有两种,12或者21,只有一种情况满足同理3和4可以分别只有2,9种具体细节见代码#include#include#include#include#includeusingname
spaces
td
JYWsuperman
·
2023-11-11 21:37
算法
AcWing - 5287. 数量 - 组合数求解+思维
时,没有2时,排列只有两种,12或者21,只有一种情况满足同理3和4可以分别只有2,9种具体细节见代码#include#include#include#include#includeusingname
spaces
td
JYWsuperman
·
2023-11-11 21:37
#
算法
牛客-【237题】算法基础精选题单-第二章 递归、分治
NC207028第k小数递归NC15173TheBiggestWaterProblem简单递归,直接暴力#include#include#include#include#includeusingname
spaces
td
JYWsuperman
·
2023-11-11 21:36
算法/思维
基础刷题
算法
数据结构
Codeforces Round 905 (Div. 3 A - G2)
CodeforcesRound905(Div.3A-G2)A.Morning思路把0看作是10模拟#includeusingname
spaces
td;typedeflonglongll;constintN
jbigseal
·
2023-11-11 21:33
codeforce题解
算法
c++
数据结构
上一页
138
139
140
141
142
143
144
145
下一页
按字母分类:
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
其他