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
电子学会C/C++编程等级考试2021年12月(二级)真题解析
(0usingname
spaces
td;intm[10005];intmain(){i
码农StayUp
·
2023-11-25 15:05
算法
青少年编程
等级考试
电子学会
开发语言
c++
【UVALive】6776 2014WorldFinal G Metal Processing Plant【2-sat——bitset优化kosaraju求scc】
#includeusingname
spaces
td;typedeflonglongLL;typedefpairpii;typedefunsignedlonglongULL;#defineclr(a,x)
poursoul
·
2023-11-25 15:22
2-sat
强连通【SCC】
双指针
bitset
位图的详细讲解
位图的实现(通过上面的位运算操作符来实现位图的存储)#includeusingname
spaces
菜鸡爱玩
·
2023-11-25 13:25
c++练习
数据结构
算法
c++
算法
开发语言
课程设计:C++实现哈夫曼编码
#include#includeusingname
spaces
td;classnode{public:c
日上三杆快起床
·
2023-11-25 13:50
课程设计
c++
算法
DFS有关的一些问题
#includeusingname
spaces
td;constintN=25;intarr[N];intn,r;intans;intres;boolprime(intn){if(nr){if(pri
想要打 Acm 的小周同学呀
·
2023-11-25 11:52
深度优先
算法
【华为OD】 C卷真题 100%通过:最多购买宝石数目 C/C++实现
最多购买宝石数目C/C++实现目录题目描述:示例1示例2示例3示例4解题思路:代码实现:题目描述:橱窗里有一排宝石,不同的宝石对应不同的价格,宝石的价格标记为gems[i],0#includeusingname
spaces
td
五木大大
·
2023-11-25 10:06
华为OD
算法
c++
c语言
华为od
开发语言
数据结构
leetCode——随机链表复制
#includeusingname
spaces
td;//Definitionforsingly-linkedlistwitharandompointer.structRandomListNode{intlabel
renjiewen1995
·
2023-11-25 10:57
c++
leetcode
链表
C#泛型列表List基本用法总结
name
spaceS
ampleListT{classProgram{staticvoidMain(string[]args){//usingSystem.Collections.Generic;命名空间中的
梳碧湖-砍柴人
·
2023-11-25 09:39
c++基础知识(3)析构函数.static.const.友元函数
类名(void)注意:1.当存在移动构造时,需要在释放空间之前判断是否是临时变量,如果是临时变量则不需要释放2.使用析构显示调用时需要注意重复释放的问题#include#includeusingname
spaces
td
飞赴
·
2023-11-25 07:15
c++
linux
开发语言
K8S添加Node节点报错: Get https://master.k8s.io:16443/api/v1/name
spaces
/kube-system/configmaps/kubeadm-conf
unabletofetchthekubeadm-configConfigMap:failedtogetconfigmap:Gethttps://master.k8s.io:16443/api/v1/name
spaces
青青的无痕
·
2023-11-25 07:07
bug处理
kubernetes
数字与字符串之间的转换
一、数字转字符串对string(1)采用sstream中定义的字符串流对象来实现#include#include#include//不能少usingname
spaces
td;intmain(){inta
脑袋空空的Coduck君
·
2023-11-25 05:54
C++学习笔记
c++
查找学习笔记
1、静态查找表以下查找的索引均从1开始(1)顺序查找(带哨兵)#include#includeusingname
spaces
td;intsearch(vectorarr,intkey){arr[0]=key
脑袋空空的Coduck君
·
2023-11-25 05:49
数据结构
学习
笔记
算法
C++多态的实例举例与应用
#includeusingname
spaces
td;//多态案例2制作饮品classAbstractDrinking{public:virtualvoidBoil()=0;virtualvoidBrew
想要成为数据科学家的菜鸟
·
2023-11-25 05:14
C
c++
算法
开发语言
数据结构 栈与队列(二) 抓住那头牛
农夫和牛都位于数轴上,农夫起始位于点N(0#includeusingname
spaces
td;intvis[200010];//队列数据节点typedefstructnode{//农夫所处位置intx;
冲鸭小慈
·
2023-11-25 02:19
C++整数逆序输出及其源码
源码如下:#includeusingname
spaces
td;intmain(){intnum,reversedNum=0,remainder;cout>num;while(num!
Book_Sea
·
2023-11-25 01:23
c++
java
开发语言
C/C++
c++:多态案例:制作饮品
#includeusingname
spaces
td;//多态案例2制作饮品//父类classAbstractDrinking{public://煮水voidBoil(){coutmakeDrinking
<( ̄︶ ̄)Okay.
·
2023-11-25 00:20
c++
c++
C++:多态的实现
引入以下实例:#includeusingname
spaces
td;classShape{protected:intwidth,height;public:Shape(inta=0,intb=0){width
执迷C++ 的菜鸡
·
2023-11-25 00:47
c++
开发语言
C++编程题1——输入字符串,输出数字最小的值
主要思想就是字符串转换成数字,排序,再把数字转换成字符串输出(如果以数字形式输出,就不满足限长度的要求)#include#include#includeusingname
spaces
td;intmai
tingzuhuitou
·
2023-11-25 00:40
c++
c++编程实例
C++ 编程基础练习——时间转换问题
#includeusingname
spaces
td;intmain(){inttime,hour,minute,second;cout<<"Pleaseinputanumber:"
Vera0831
·
2023-11-25 00:09
C++
c++
问题 C: 零基础学C/C++03——Very Good
***************#includeusingname
spaces
td;intm
༺༺C༒J༻༻
·
2023-11-25 00:35
c++
visual
studio
C++编程——输入
#includeusingname
spaces
td;intmain(){//=======begin=======inta=0,b=0,c=0,d=0,e=0;charf1,f2;charg[30];scanf
William.csj
·
2023-11-25 00:04
编程语言
c语言
c++
C++(11):原子类型的is_lock_free/is_always_lock_free
原子类型提供了一个成员函数is_lock_free,用于指示该原子类型是不是以无锁方式实现的:#include#includeusingname
spaces
td;intmain(){cout#includeusingname
spaces
td
风静如云
·
2023-11-25 00:25
C/C++
c++
C++(14):解决lambda生命期问题
C++14中可以通过重新定义变量,并转移,解决这个问题:#includeusingname
spaces
td;classA{public:A(intdata):m_data(data){cout<<"Construct
风静如云
·
2023-11-25 00:25
C/C++
c++
【数据结构/C++】栈和队列_循环队列
#includeusingname
spaces
td;//循环队列#defineMaxSize10typedefintElemType;typedefstruct{ElemTypedata[MaxSize
小谢sd
·
2023-11-25 00:12
C/C++
数据结构
数据结构
c++
开发语言
洛谷 P1012 拼数
程序说明排序思想(这个算法真的太妙了)代码如下:#includeusingname
spaces
td;intmain(){intn;cin>>n;stringa[20];for(inti=0;i>a[i]
03530b324b78
·
2023-11-24 23:47
二、类与对象(二)
8this指针8.1this指针的引入我们先来定义一个日期的类Date:#includeusingname
spaces
td;classDate{public:voidInit(intyear,intmonth
HackerKevn
·
2023-11-24 23:03
C++笔记
c++
笔记
数据结构与算法编程题19
单链表队列#includeusingname
spaces
td;typedefintElemtype;#defineERROR0#defineOK1typedefstructLNode{Elemtypedata
爱发明的小兴
·
2023-11-24 23:31
算法与数据结构
数据结构
数据结构与算法编程题17
堆栈相关操作#includeusingname
spaces
td;#defineMaxsize100typedefintElemtype;#defineERROR0#defineOK1typedefstructSqStack
爱发明的小兴
·
2023-11-24 23:30
算法与数据结构
数据结构
数据结构与算法编程题18
#includeusingname
spaces
td;#defineMaxsize100#defineERROR0#defineOK1typedefintElemtype;typedefstructQueue
爱发明的小兴
·
2023-11-24 23:30
算法与数据结构
数据结构
数据结构与算法编程题15
#includeusingname
spaces
td;typedefintElemtype;#defineERROR0;#defineOK1;typedefstructLNode{Elemtypedata
爱发明的小兴
·
2023-11-24 23:26
算法与数据结构
数据结构
UVa-1025城市里的间谍 A Spy in the Metro
]=0已经到达,其他d[T][i]=inf不可达.在一个站点时,有以下三种决策:等一分钟搭乘往左开的车(前提是有)搭乘往右开的车AC代码#include"bits/stdc++.h"usingname
spaces
td
weixin_30567471
·
2023-11-24 23:16
数据结构与算法
A SPY in the Metro(城市里的间谍),UVA1025【dp】
而dp[T][j]为INF(jusingname
spaces
td;#defineINF0x3f3f3f3fintmain(){intn,T,Case=1;while(cin>>n&&n){cin>>T;
m_turtle
·
2023-11-24 23:40
动态规划
ACMICPC
动态规划
UVa1025
UVA 1025 A Spy in the Metro(城市里的间谍)
代码如下:#include#include#includeusingname
spaces
td;intn,T,M1,M2,t[99],m1[99],m2[99];inthas_train[999][99]
DIDCJS
·
2023-11-24 22:24
动态规划
C
C++
uva
dp
线性表的顺序存储
#includeusingname
spaces
td;#defineTRUE1#defineFALSE0#defineOK1#defineERROR0#defineINFEASIBLE-1#defineOVERFLOW
lxylxy001
·
2023-11-24 22:39
数据结构
排序....
1.直接插入排序1.1将数组分为有序和无序部分无序部分插入到有序部分4#includeusingname
spaces
td;voidInsertSort(inta[],intn){inttmp;intj;
lxylxy001
·
2023-11-24 22:09
算法
c++
数据结构
‘sizeof’ on array function parameter ‘arr’ will return size of ‘int*’ [-Wsizeof-array-argument]
Code:#includeusingname
spaces
td;intTest(inta[],intlength,intx){intlength=sizeof(a)/sizeof(a[0]);return0
Minority
·
2023-11-24 21:38
using namespace std 是什么意思?
usingname
spaces
td意思:using和namespace都是C++的关键词。std是标准程序库所驻
nightmelody
·
2023-11-24 21:32
C语言
DFS解决连通块问题
#includeusingname
spaces
td;chara[50][50];intbook[50][50],m,n;voiddfs(intx,inty,intcnt){if(xm||yn)return
Noahの梦想
·
2023-11-24 21:32
算法(深度优先搜索)
Codeforces Round #786 (Div. 3)(A-D)
D.A-B-CSort大意:思路A.NumberTransformation(构造)大意:求是否存在a,b使得式子ba=y/x成立思路:当y/x为整数时构造a=1b=y/x即可#includeusingname
spaces
td
.Ashy.
·
2023-11-24 21:02
c++
算法
开发语言
连通块问题——DFS——C++详解
例如,下图中有两个八连块****@*@@*@@***@@@***@@@**代码一如下:#include#definemaxn100+5usingname
spaces
td;charch[maxn][maxn
枯木何日可逢春
·
2023-11-24 21:01
dfs
Codeforces Round #842 (Div. 2) 题解(A-E)
#includeusingname
spaces
td;voidsolve(){intn;cin>>n;cout>n;while(n--){solve();}return0;}BQuickSort其实就是找最大的不需要进行题目中
五百场cf灰名
·
2023-11-24 21:30
codeforces题解
c++
算法
Codeforces Round #771 (Div. 2)---A-D
A.Reverse—思维题意:给一个1~n全排列组成的数组,任意找一个左端点l和右端点r,将l~r区间的数反转一下,求得到字典序最小的新数组#include#include#includeusingname
spaces
td
_WAWA鱼_
·
2023-11-24 21:56
比赛补题
c++
c语言
算法
DFS 连通块
将墙包围之外的空地全部填充额外多填充最外层的一圈注意条件的判断洛谷P1506拯救oibh总部#includeusingname
spaces
td;constintN=510;intn,m;charg[N]
Optimus Code
·
2023-11-24 21:23
蓝桥杯
算法
c++
2023-2024-2 高级语言程序设计-二维数组
输入格式:输入第一行给出正整数n(1usingname
spaces
td;intmain(){intn,i,j,a[15][15],s=0;cin>>n;for(i=1;i>a[i][j];}for(i=
星河欲转。
·
2023-11-24 21:51
pta
算法
数据结构
2021-10-4【Codeforces Round #746 (Div. 2)】【A-D题解】
AGamerHemose#includeusingname
spaces
td;intmain(){ios::sync_with_stdio(0);intt;cin>>t;while(t--){longlongn
Eternity_GQM
·
2023-11-24 21:19
比赛题解
算法
dfs的连通块问题
#include#includeusingname
spaces
td;intn;charmaze[1005][1005];//储存地图intans[1005][1005];//储存答
glancelike
·
2023-11-24 21:49
dfs
dfs
队列
2023年c语言程序设计大赛
输入样例:#includeusingname
spaces
td;intmain(){inti,j,k,l,m;charc='/*';cout=1;i--){f
星河欲转。
·
2023-11-24 21:12
出题题库
c语言
算法
c++
蓝桥杯每日一题2023.11.23
题目描述题目分析本题使用递归模拟即可,将每一个大格子都可以拆分看成几个小格子,先将最开始的数字进行填入,使每一个对应小格子的值都为大格子对应的数,搜索找到符合要求的即可(答案:50333041)#includeusingname
spaces
td
Akct
·
2023-11-24 20:17
蓝桥杯
算法
职场和发展
蓝桥杯算法双周赛
数树数#includeusingname
spaces
td;usingll=longlong;constintN=2e5+5;intgcd(inta,intb){returnb?
eacnscnj
·
2023-11-24 20:58
蓝桥杯
算法
Visual Studio 2010 C++编译错误“表达式必须包含整数或枚举类型“
下面我们来看一个例子:#includeusingname
spaces
td;intmain(){doublex=3.14;inty=2;
HackLogic
·
2023-11-24 18:41
c++
visual
studio
开发语言
C/C++
上一页
123
124
125
126
127
128
129
130
下一页
按字母分类:
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
其他