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
2-1基础算法-枚举/模拟
文章目录1.枚举2.模拟1.枚举[例1]特别数的和评测系统#includeusingname
spaces
td;boolpa(intx){while(x){if(x%10==2||x%10==1||x%10
卡__卡
·
2023-12-14 19:53
C/C++算法竞赛
算法
c++
数据结构
c语言
开发语言
青少年编程
1-3算法基础-标准模板库STL
#include#includeusingname
spaces
td;intmain(){pairperson=make_pair(25,"jack");//存储一对值并初始化//可简写为pairperson
卡__卡
·
2023-12-14 19:53
C/C++算法竞赛
算法
c++
开发语言
青少年编程
c语言
1-2算法基础-常用库函数
,cmp)first指向要排序范围的第一个元素,从0起last指向要排序范围的最后一个元素的下一个位置cmp(可选),自定义函数,默认从小到大评测系统#include#includeusingname
spaces
td
卡__卡
·
2023-12-14 19:23
C/C++算法竞赛
算法
c语言
c++
青少年编程
2-2基础算法-递归/进制转换
includeintcountCombinations(intn){//计算当然组合种数if(n==1){return1;}intcount=1;//数字本身就是一个有效组合for(inti=1;i>n;coutusingname
spaces
td
卡__卡
·
2023-12-14 18:06
C/C++算法竞赛
算法
c++
开发语言
c语言
青少年编程
【01分数规划】ABC324F
洛谷思路首先看到这个形式很容易想到01分数规划,即去二分答案,然后就是转化成是否存在一个路径使得sigmab-mid*sigmac>=0显然只需要改变一下边权,跑一遍最长路即可#includeusingname
spaces
td
lamentropetion
·
2023-12-14 18:01
二分
动态规划
图论
算法
C++知识点总结(8):尺取法真题代码
一、最长连续小写子串#include#includeusingname
spaces
td;intmain(){//输入strings;cin>>s;//尺取法intlen=s.length();intl=
AICodeThunder
·
2023-12-14 18:17
C++知识点总结
C/C++
编程笔记
知识点总结
C++小白 利用栈解决迷宫问题
问题中的迷宫蓝色圈为起点,绿色为终点实现代码先定义储存路径信息的栈和可行走方块的结构#include#include#definemaxsize100#defineN10usingname
spaces
td
里咿恩夜石
·
2023-12-14 17:08
c++
栈
neuq-acm预备队训练week 8 P8794 [蓝桥杯 2022 国 A] 环境治理
输入输出样例解题思路最短路+二分AC代码#includeusingname
spaces
td;longlongtemp,n,Q;longlongf[105][105],min_f[105][105],cut
ciwen_
·
2023-12-14 17:59
蓝桥杯
职场和发展
图论
算法
neuq-acm预备队训练week 9 P3367 【模板】并查集
输入格式解题思路并查集的用法AC代码#includeusingname
spaces
td;#defineMax1000001intzi,xi[Max],yi[Max],Fa[Max];intfind(intx
ciwen_
·
2023-12-14 17:29
算法
《C++新经典设计模式》之第18章 备忘录模式
《C++新经典设计模式》之第18章备忘录模式备忘录模式.cpp备忘录模式.cpp#include#include#includeusingname
spaces
td;//保存对象内部状态,必要时恢复//在不破坏封装性的前提下
mali378287007
·
2023-12-14 16:00
设计模式
C/C++
c++
设计模式
备忘录模式
linux Ubuntu下,第一个C++程序访问数据库,遇到的问题,及解决办法
在ubuntu下安装了mysql,mysql++以后,编写了第一个访问数据库的程序:#include#include#include//forsystem#includeusingname
spaces
td
yanzhenxi
·
2023-12-14 16:10
《白话C++》学习
linux
ubuntu
c++
第14章 《数据》Page62~63页,获取结果字段
#include#includeusingname
spaces
td;charto_char(boolb){returnb?'
yanzhenxi
·
2023-12-14 16:10
《白话C++》学习
数据库
ubuntu
c++
构造函数和析构函数
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusingname
spaces
td
cwlden
·
2023-12-14 16:30
c++
算法
开发语言
清理磁盘方法
把位置改成目标位置管理员运行
spaces
niffer,查看结果,已及有没有其他需要删除的文件
繁星十年
·
2023-12-14 15:24
经验分享
Day52力扣打卡
打卡记录CollapsingStrings(Trie树)链接#include#includeusingname
spaces
td;constintN=2e6+10;intson[N][26],idx,cnt1
功德箱我每年都投
·
2023-12-14 15:56
leetcode刷题打卡
leetcode
算法
职场和发展
python
成都工业学院2021级操作系统专周课程设计FCFS,SSTF,SCAN,LOOK算法的实现
运行环境操作系统:Windows11家庭版运行软件:CLion2023.2.2源代码文件#include#include#include#includeusingname
spaces
td;//生成随机数
CDTU iron fan
·
2023-12-14 13:08
成都工业学院课程设计
课程设计
《C++新经典设计模式》之第15章 适配器模式
《C++新经典设计模式》之第15章适配器模式适配器模式.cpp适配器模式.cpp#include#include#include#include#includeusingname
spaces
td;//解决两个类之间的兼容性问题
mali378287007
·
2023-12-14 12:30
C/C++
设计模式
c++
设计模式
适配器模式
c++ 引用
引用的基本语法引用就是起别名#includeusingname
spaces
td;intmain(){//引用基本语法//数据类型&别名=原名inta=10;int&b=a;coutusingname
spaces
td
小锅沃
·
2023-12-14 12:57
c++
算法
C++(14):获取类型在tuple中的索引
tuple没有提供方法可以获取某个类型在tuple中的索引,借助模板推到,我们可以自己实现一个:#include#includeusingname
spaces
td;templatestructget_index_of_element_from_tuple_by_type
风静如云
·
2023-12-14 12:24
C/C++
c++
ACM程序设计课内实验(4)查找
头文件•upper_bound返回第一个大于的元素的下标;•lower_bound返回第一个大于等于元素的下标;1.二分查找Description有n(1#include#includeusingname
spaces
td
烟雨平生9527
·
2023-12-07 01:05
算法
c++
数据结构
算法设计与分析第五章作业
用回溯法分析“最小重量机器设计问题”代码#includeusingname
spaces
td;constintN=1010;intn,m,d;intw[N][N],c[N][N];intx[N],bestx
令夏二十三
·
2023-12-07 01:03
#
算法
算法
深度优先
回溯法
单元最短路径Djistra算法
弱化版本#include#include#include#include#defineinf2147483647usingname
spaces
td;intn,m,s,a,b,c;constintN=100010
想要打 Acm 的小周同学呀
·
2023-12-07 01:00
算法综合2023年底
算法
单元最短路径
线段树基础模板c++
线段树的基础模板代码#includeusingname
spaces
td;#defineN100005#defineintlonglong#definelcp>1;build(lc,l,mid);build
想要打 Acm 的小周同学呀
·
2023-12-07 01:58
算法综合2023年底
c++
开发语言
算法
两个直线/线段的交点 - C++
然后利用高中学习的定比分点坐标公式求得分点P的坐标要注意的是若判断是两条线段,需先判断能否相交,相交的时候才可调用该公式求相交点c++代码如下#include#include#include#includeusingname
spaces
td
YZF_Kevin
·
2023-12-07 00:26
两条直线的交点
两条线段的交点
线段的交点
线段相交 c语言,c++求两个线段的交点
#include#includeusingname
spaces
td;structpoint{doublex;doubley;};structsegment{pointstart;pointend;};doublemulti
夏云初
·
2023-12-07 00:24
线段相交
c语言
C++点类
#include#includeusingname
spaces
td;classPoint{private:doublex;doubley;doublez;public:Point(dou
这辈子秃头是不可能的
·
2023-12-07 00:51
c++
算法
开发语言
Jupyter 数据重复值处理
importosimportpandasaspdimportnumpyasnpos.chdir('D:\Work
spaces
\Jupyter')df=pd.read_excel('data_test.xlsx
卡卡卡卡NI
·
2023-12-06 21:14
python学习
Jupyter 缺失值处理
importosimportpandasaspdimportnumpyasnpos.chdir('D:\Work
spaces
\Jupyter')df=pd.read_excel('data_test.xlsx
卡卡卡卡NI
·
2023-12-06 21:14
python学习
C++ 解决std::string字符串显示中文乱码的问题
二、代码示例2.1解决方法#includeusingname
spaces
td;std::stringstring_To_UTF8(conststd::string&str){
奔跑的小豆芽
·
2023-12-06 21:42
c++
中文显示乱码
【C++刷题】校招笔试编程题第一辑
组队竞赛#include#include#includeusingname
spaces
td;intmain(){intn;cin>>n;vectorv;v.resize(3*n);inti=0;for(
阿阿阿顺Yaya
·
2023-12-06 20:31
C/C++刷题
c++
算法
数据结构
Qt OpenCV 学习(三):跟踪视频中的运动物体
ifndefMAINWINDOW_H#defineMAINWINDOW_H#include#include#include#include#include#includeusingnamespacecv;usingname
spaces
td
Robot_Yue
·
2023-12-06 20:48
Qt
OpenCV
学习
qt
opencv
学习
西南科技大学C++程序设计实验六( 继承与派生一)
#includeusingname
spaces
td;classA//基类{private:inta;public:voidset
Myon⁶
·
2023-12-06 18:53
C++实验
c++
西南科技大学
visual
studio
C++实验
C++ 函数进阶
#includeusingname
spaces
td;voidF(inta=0){coutcapacity==0?4:ps->capacity*2;ps
貌美不及玲珑心,贤妻扶我青云志
·
2023-12-06 18:13
C/C++
c++
2019-04-02 C++学习笔记之字符串
**例1**简单string的读写#include#include//包含字符串库usingname
spaces
td;voidmain(){stringstr;//定义字符串对象c
NoelleMu
·
2023-12-06 18:44
蓝桥杯ACwing习题
https://www.acwing.com/problem/content/1223/#include#include#includeusingname
spaces
td;constintN=2500010
wyn66666
·
2023-12-06 18:15
蓝桥杯
算法
冒泡排序和选择排序的小乐趣
正常的冒泡排序和选择排序是这样的#includeusingname
spaces
td;intmain(){intarr[]={3,24,8,23,1,9,10,56,42,6,17};intsize=sizeof
水,水,水
·
2023-12-06 17:36
c++
C++ 32盏灯,利用进制和 与 或 进行设计
盏灯满足以下功能1、能够独立控制每一盏灯2、能够一次性打开或关闭一个区域的全部灯光3、能够获取各个区域的灯光打开关闭情况4、能够一次性关闭打开的灯,打开关闭的灯#include#includeusingname
spaces
td
水,水,水
·
2023-12-06 17:36
C++
c++
开发语言
4.求解无向图的各连通分支
求解无向图的各连通分支输入:第一行为图的节点数n(节点编号0至n-1,0#include#include#include#includeusingname
spaces
td;voidBFS(intstart
Cosmo9
·
2023-12-06 15:18
算法
c++
2. 活动调度(贪心)
输入要求:第一行为活动的个数N(1#include#includeusingname
spaces
td;constintm=1e6+5;intLeft[m],Right[m];boolcmp(inta,intb
Cosmo9
·
2023-12-06 15:18
算法
c++
华清远见嵌入式学习——C++——作业5
作业要求:代码:#includeusingname
spaces
td;//沙发类classSofa{private:stringsitting;//是否可坐double*cost;//花费public:/
谢俊翔
·
2023-12-06 15:57
学习
华清远见嵌入式学习——C++——作业6
作业要求:代码:#includeusingname
spaces
td;classAnimal{public:virtualvoidperform()=0;};classLion:publicAnimal{
谢俊翔
·
2023-12-06 15:56
学习
【数据结构】中序遍历非递归算法
基本思想:(1)建立一个栈(2)根结点进栈,遍历左子树(3)根结点出栈,输出根结点,遍历右子树#includeusingname
spaces
td;typedefstructBiTNode{chardata
jianbiao1483
·
2023-12-06 14:04
c++
数据结构(c++)
数据结构
c++
[数据结构]C++递归算法作业
1.斐波那契数列已知:f(0)=1f(1)=1f(n)=f(n-1)+f(n-2)请编程求解f(n)答案#includeusingname
spaces
td;intfabo(intn){if(n==0||
Linyeji
·
2023-12-06 14:29
数据结构
算法
c++
数据结构
已知 XYZ+YZZ=532,其中,X、Y、Z 为数字,编程求出 X、Y 和 Z 的值
C语言实现#includeintmain(){intx,y,z;for(x=0;xusingname
spaces
td;intmain(){intx,y,z;for(x=0;x<10;x++){for(y
杨正国y
·
2023-12-06 14:10
C++
编辑器
c++
c语言
c++ day5
#includeusingname
spaces
td;classSofa{private:stringsiting;int*num;//个数,指针成员public:Sofa(){cout<<"SOfa::
ZK12345_
·
2023-12-06 13:12
c++
[数据结构]线性表1 C++编程作业
链表三插法详解:链表的三种插入方法(头插法,尾插法,任意位置插入)_链表插入_夜路难行々的博客-CSDN博客1·使用头插法创建链表#includeusingname
spaces
td;typedefstructLnode
Linyeji
·
2023-12-06 12:02
数据结构
c++
数据结构
算法
算法基础之走迷宫
走迷宫核心思想:BFS宽度优先搜索每走到一个点上下左右都走一次试试能过去就记录上#include#include#include#includeusingname
spaces
td;typedefpairPII
阳光男孩01
·
2023-12-06 10:05
算法
算法基础之n-皇后问题
n-皇后问题dfs:将下一个皇后不能放的位置标记col列dg对角线udg反对角线已经确定一列只有有一个皇后的做法:#includeusingname
spaces
td;constintN=20;charg
阳光男孩01
·
2023-12-06 10:04
算法
深度优先
图论
c++
数据结构
散列表
算法基础之排列数字
排列数字核心思想:DFS(一棵树)#includeusingname
spaces
td;constintN=10;intn,m;intpath[N];boolst[N];voiddfs(intu){if(
阳光男孩01
·
2023-12-06 10:34
算法
深度优先
图论
算法基础之八数码
八数码核心思想:BFS将矩阵展开成字符串寻找目标字符串”12345678x”#include#include#include#includeusingname
spaces
td;intbfs(stringstart
阳光男孩01
·
2023-12-06 10:01
算法
散列表
数据结构
图论
c++
上一页
108
109
110
111
112
113
114
115
下一页
按字母分类:
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
其他