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
数据结构:栈(区间问题)
码蹄集OJ-小码哥的栈#includeusingname
spaces
td;#defineintlonglongconstintN=1e6+7;structMOOE{intll,rr;};stackst;
limitless_peter
·
2025-07-20 19:31
数据结构
VirusKing整蛊代码:注销解决
系统给我卡崩溃了,所以可见它有多猛,病毒名:VirusKing防护系统:基于SuperVirus3.0的全屏防杀系统二:代码上代码:#include#include#include#includeusingname
spaces
td
DHY 专研C++病毒
·
2025-07-20 19:29
c++
windows
病毒
校园导游系统(C++)
问题总结1、当使用时,该头文件没有定义全局命名空间,必须使用usingname
spaces
td,这样才能使用类似于cout这样的C++标识符正确用法:#includeusingname
spaces
td;
白开水最甜
·
2025-07-20 14:00
数据结构
课程设计
校园导航系统
Online Judge PTA 字符串排序
1usingname
spaces
td;#defineMAX_STRINGS100#defineMAX_LENGTH21voidsortStrings(char(*arr)[MAX_LENGTH],intn
Flocx
·
2025-07-20 13:23
Online
Judge
PTA
数据结构
c++
c语言
P1526 [NOI2003] 智破连环阵 (如果不想登录复制可打开 https://www.luogu.com.cn/team/106732 进入我的团队,有问题可以问我)
以后,一旦第i(1≤iusingname
spaces
td;//Starttypedefl
·
2025-07-20 11:02
CodeFoeces-377A
代码#includeusingname
spaces
td;chars[505][505];intvis[505][505]={0};intmov[4][2]={0,1,0,-1,1,0,-1,0}
ss5smi
·
2025-07-20 04:51
C++ 实现多继承和组合
++的继承和组合思路首先定义一个硬件和软件类,包含各自的数据成员和成员函数采用多继承实现计算机系统类采用组合实现计算机系统最后在main()中进行测试#include#includeusingname
spaces
td
uj_
·
2025-07-19 17:53
C++
C++
继承和组合
高精减法P2142
#includeusingname
spaces
td;boolcmp(stringa,stringb){if(a.size()!
张辰宇-
·
2025-07-19 10:31
c++
算法
数据结构
洛谷 P2947:[USACO09MAR] Look Up S ← 数组模拟+单调栈
对于奶牛i,如果奶牛j满足iusingname
spaces
td;constintmaxn=1e6+5;inth[maxn],c[maxn];intstk[maxn];intn,top;i
hnjzsyjyj
·
2025-07-19 09:58
信息学竞赛
#
栈与递归
#
STL标准库
单调栈
STL
stack
C++ 11 Lambda表达式和min_element()与max_element()的使用_c++ lamda函数 min_element((1)
这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新如果你需要这些资料,可以戳这里获取#include#include#includeusingname
spaces
td
2401_84976182
·
2025-07-12 19:09
程序员
c语言
c++
学习
洛谷 P11120 [ROIR 2024 Day 1] 登机 题解
最后若musingname
spaces
td;chara[1010][10];stru
殇之夜
·
2025-07-12 18:33
洛谷
c++
c语言
算法
【华为od刷题(C++)】HJ59 找出字符串中第一个只出现一次的字符
/引入输入输出流,允许使用cin和cout进行输入输出操作#include//引入字符串类,允许使用string类型#include//引入map容器,允许使用map来存储键值对数据usingname
spaces
td
·
2025-07-11 13:15
【华为od刷题(C++)】HJ60 查找组成一个偶数最接近的两个素数
我的代码:#include//用于输入输出操作(例如cin和cout)#include//用于动态数组操作,存储可能的质数对usingname
spaces
td;//判断一个数字x是否是质数(素数)//质数是指只能被
m0_64866459
·
2025-07-11 13:15
华为od
c++
开发语言
python如何删除xml中的w:ascii属性
模块通过以下步骤删除XML中的w:ascii属性:importxml.etree.ElementTreeasET#原始XML片段(需包含命名空间声明)xml_str=''''''#注册命名空间name
spaces
detayun
·
2025-07-11 13:14
Python
python
xml
C++ -01(7.10个人学习记录)
因为iostream库包含输入流和输出流相关函数usingname
spaces
td;--命名空间的释名,使在程序中不需要写出STD::因为我们需要用到命名空间中的一些工具,如endl、换行intmain
林
·
2025-07-11 12:08
c++
学习
PTA.7-1 一元多项式求导 (20 分)
#include#includeusingname
spaces
td;//整形n用于判断输入的是指数还是系数typedefstructnode{int*b;int*t;}*lnode;voidinl(lnode
rainbow589
·
2025-07-11 04:44
c++
数据结构
2023 睿抗机器人开发者大赛CAIP-编程技能赛-本科组(省赛)
编程技能赛-本科组(省赛)RC-u1亚运奖牌榜题意给定两个国家/地区的金银铜牌的获得记录,输出他们的金银铜牌的具体记录,并输出哪个国家/地区排名高思路直接读入后比较即可代码#includeusingname
spaces
td
Harold0895
·
2025-07-10 19:43
算法
c语言
c++
指针的const应用
分为三个一、const修饰指针我允许你更换存储的门牌号,但是这个里面住户的数据布局不许改#includeusingname
spaces
td;intmain(){inta=10,b=20,c=10;constint
颖川守一
·
2025-07-10 18:08
算法
c++
数据结构实验解析(C++版)——实验一 复杂度分析
代码例题2代码五、实验结果分析与总结1、实验结果分析2、该实验与数据结构的联系一、实验例题例题1时间空间限制时间限制:1SEC空间限制:128MB问题描述分析以下代码:for(i=1;iusingname
spaces
td
拯救三金
·
2025-07-10 11:51
数据结构
c++
算法
【华为od刷题(C++)】HJ52 计算字符串的编辑距离
我的代码:#include//用于输入输出#include//包含一些常用算法,如min等#include//用于动态数组(二维数组)#include//用于处理字符串usingname
spaces
td
m0_64866459
·
2025-07-09 20:50
华为od
c++
开发语言
C++函数的参数与返回值
a#includeusingname
spaces
td;//无参无返voidcanshu1(){cout<<"该参数为"<
颖川守一
·
2025-07-09 17:28
c++
算法
开发语言
Docker技术笔记-从零开始的容器技术之旅
容器和虚拟机对比对比维度容器(Docker)虚拟机(VM、KVM)架构原理共享宿主机内核,通过命名空间(Name
spaces
)和控制组(Cgroups)实现资源隔离。
青竹易寒
·
2025-07-08 19:05
docker
学习
容器
C++进阶小程序(画菱形)
******************************************/#includeusingname
spaces
td;intmain(){inta;cout>a;for(inti=1
twg123456
·
2025-07-08 18:28
c++
C++打印菱形
c++打印特殊图形——菱形#includeusingname
spaces
td;voidmain(){intn;cin>>n;for(inti=0;i
·
2025-07-08 18:28
菱形图案的c++实现
示例1输入2输出*********#includeusingname
spaces
td;intmain(){inta;while(cin>>a){for(inti=1;i=i;j--)
·
2025-07-08 18:27
c++题目:打印菱形
题目描述打印n阶实心菱形输入描述输入一个整数n,0usingname
spaces
td;intmain(){intn,i,j,ii;cin>>n;for(i=0;i<n;
这名字怎么取啊
·
2025-07-08 18:27
c++
算法
解数独c++
这一期属于睡不着的填坑为了拿来即用,我把全部代码放在开头:#includeusingname
spaces
td;inta[10][10];booljudge(intvi,intvj,intnum);boolplay
我们教练不会签到
·
2025-07-08 18:54
c++
算法
数据结构
C++goto;与break;continue区别
(这部分就不执行)goto:#includeusingname
spaces
td;intmain(){cout<<"a1"<
·
2025-07-08 15:06
【华为od刷题(C++)】HJ23 删除字符串中出现次数最少的字符
我的代码:#include//用于输入输出操作#include//引入哈希表容器unordered_map,用来存储每个字符出现的次数usingname
spaces
td;intmain(){stringstr
m0_64866459
·
2025-07-08 07:41
哈希算法
算法
c++
华为od
Hough变换
include"opencv2/highgui/highgui.hpp"#include"opencv2/core/core.hpp"#include//#include//#includeusingname
spaces
td
·
2025-07-08 06:03
奇数和偶数的求法c++
今天给大家分享一个奇偶数的求法:#includeusingname
spaces
td;intmain(){inta=0;cin>>a;if(a%2==0){cout>a;这是输入和声明if
·
2025-07-08 01:53
快速排序算法
以下是快速排序算法的C++实现:快速排序的C++实现代码:#include#includeusingname
spaces
td;voidSwap(int&a,int&b){intnTemp=a;a=b;b
追烽少年x
·
2025-07-07 22:58
数据结构
数据结构
C - Large Queue
地址:C-LargeQueue#includeusingname
spaces
td;constintN=1e5+10;voidsolve(){intn;cin>>n;queue>q;while(n--){
queenlll
·
2025-07-07 19:38
c语言
开发语言
c++求同构数
找出通过键盘输入的两个正整数N和M(0usingname
spaces
td;intn,m,t,s,a[100],b[100],sum,s1,s2,k;intmain(){cin>>n>>m;for
*Allen*
·
2025-07-07 19:07
c++
算法
数据结构
【华为od刷题(C++)】HJ35 蛇形矩阵(指针)
我的代码1:#includeusingname
spaces
td;intmain(){introw;//row:定义了矩阵的行数(和列数,实际上是一个正方形矩阵)while(cin>>row){//这个循环会持续执行
m0_64866459
·
2025-07-07 18:05
华为od
c++
链表
【华为od刷题(C++)】HJ33 整数与IP地址间的转换
我的代码:#include//这个头文件提供了输入输出流的功能,使得我们能够使用cin和cout来进行输入输出usingname
spaces
td;//可以直接使用标准命名空间std中的功能//比如cout
m0_64866459
·
2025-07-07 12:21
华为od
c++
链表
AtCoder ABC344 A-E题解
#includeusingname
spaces
td;intmain(){stringS;cin>>S;inti=S.find('|');j=S.find('|',i+1);coutusingname
spaces
td
seanli1008
·
2025-07-07 04:57
#
AtCoder题解
题解
五天速成C++-----第五天
已经存在的类成为父类或基类新创建的类称为子类或派生类#includeusingname
spaces
td;classFather{public:stringfirst_name="李";voidwork(
别睡了.
·
2025-07-07 02:44
五天速成C++
c++
开发语言
算法
LeetCode-5.最长回文子串 C++实现
示例2:输入:s="cbbd"输出:"bb"提示:1usingname
spaces
td;classSolution{public:stringlongestPalindrome(strings){intn
·
2025-07-06 20:31
AtCoder Beginner Contest 412(ABCDE)
图论和数论题好难,还得多练啊……一、A-TaskFailedSuccessfully#includeusingname
spaces
td;typedeflonglongll;typedefpairpii;
·
2025-07-06 14:40
【华为od刷题(C++)】HJ30 字符串合并处理
//用于字符串流的处理,可以将数据从字符串流中提取#include//提供字符处理函数,如isdigit、isalpha等#include//提供位集处理,能够将数字转换为二进制表示usingname
spaces
td
m0_64866459
·
2025-07-06 12:50
华为od
c++
链表
【数据结构】栈
代码实现:#include#include#includeusingname
spaces
td;intprio(charop){//给运算符优先级排序intt;if(op=='*'||op=='/')t=
会的全对٩(ˊᗜˋ*)و
·
2025-07-06 11:08
数据结构
数据结构
经验分享
栈
线性代数向量内积_向量的点积| 使用Python的线性代数
DefiningaVector先决条件:线性代数|定义向量Linearalgebraisthebranchofmathematicsconcerninglinearequationsbyusingvector
spaces
andthroughmatrices.Inotherwords
cumubi7453
·
2025-07-06 08:14
python
线性代数
机器学习
numpy
算法
DAY08 算法训练营| 字符串part01
四数之和)classSolution{public:voidreverseString(vector&s){len=s.length();for(inti=0,j=s.size()-1;iusingname
spaces
td
天空的孩子
·
2025-07-06 05:59
算法
【华为od刷题(C++)】HJ17 坐标移动(continue语句、break语句)
我的代码:#include//用于输入输出#include//用于处理字符串#include//用于存储动态数组usingname
spaces
td;intmain(){strings;//用于存储输入的字符串
m0_64866459
·
2025-07-06 01:36
华为od
c++
开发语言
牛客周赛 Round 59(思维、构造、数论)
#includeusingname
spaces
td;intmain(){doublen,m;ci
mldl_
·
2025-07-05 20:27
数据结构与算法
算法
数论
逆序数
构造
对角线处理
范德蒙恒等式
c++第七天--特殊运算符重载
#includeusingname
spaces
td;classMyInt{private:intvalue;public://类型转换构造函数:可以用
clock的时钟
·
2025-07-05 19:48
c++面向对象
c++
开发语言
洛谷刷题8
B2051点和正方形的关系B2051点和正方形的关系-洛谷难度:入门如果x1||y1,那么点就在正方形外,反之亦然AC代码:#includeusingname
spaces
td;intmain(){#defineintlonglongintx
eurotruck
·
2025-07-05 13:07
c++
算法
图论
洛谷
刷题
Codeforces Round 1027 (Div. 3)
这时一定有f[x]=min(f[x],f[x/y]+1)(y为x的约数且yusingname
spaces
td;//#defineintlonglong#defineendl'\n'constintN=1e6
·
2025-07-05 03:59
萌新赛练习
和最大元素加n,里面挑选一个最大值进行数组的累加,但最后评测的时候有一个样例没有通过,说明我们考虑的不全面,所以在这里我们需要遍历所有可能的情况,选出最终的最大值原错误代码#includeusingname
spaces
一定要AK
·
2025-07-05 02:58
数据结构
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他