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#includeusingname
spaces
td;#defineOK1#defineERROR0#defineOVERFLOW-2typedefintStatus;//声明类型int类型为
点一下我的id
·
2024-01-28 12:01
数据结构C++栈(数组模拟)
例题:https://www.acwing.com/activity/content/problem/content/865/#includeusingname
spaces
td;constintN=1e5
松定
·
2024-01-28 11:20
数据结构
c++
开发语言
poj1051 模拟
/*Time:2019.11.2Author:Goventype:字符串处理err:ref:*/#include#include#include#includeusingname
spaces
td;intmain
暖昼氤氲
·
2024-01-28 11:36
数据结构C++队列(数组模拟)
例题:https://www.acwing.com/activity/content/problem/content/866/#includeusingname
spaces
td;constint
松定
·
2024-01-28 11:47
数据结构
c++
开发语言
CSP - CCF 2023 - 12 因子化简(暴力80分)
遇到可以分解的质数进入循环,记录次方count,若大于等于k则保留,并且将该次方结果记录到vector数组之中最后将数组之中的值相乘输出即可#include#include#includeusingname
spaces
td
友人A
·
2024-01-28 09:12
csp
-
ccf
算法
c++
牛客网java考试选择题_牛客网华为笔试题—1
#include#include#includeusingname
spaces
td;intLength_last_string(string&a){intlengtn=a.size();intresutl
weixin_39950552
·
2024-01-28 08:06
牛客网java考试选择题
蓝桥杯——既约分数
#includeusingname
spaces
td;intmain(){intcot=0;for(inti=1;i<2021;i++){for(intj=1;j<i;j++){a:for(intk
shen_luoli
·
2024-01-28 07:24
c++
算法
蓝桥杯
蓝桥杯 试题 B 既约分数
答案:2481215#includeusingname
spaces
td;intans;intgcd(inta,intb){if(b==0)returna;returngcd(b,a%b);}intmain
小冉同学
·
2024-01-28 07:52
蓝桥杯
莫比乌斯与欧拉
#includeusingname
spaces
td;constintN=1e6+10;intmu[N],prime[N],cnt,ol[N];boolvis[N];voidola(intn){vis[1
:Alarm clock
·
2024-01-28 07:02
算法
图论
数据结构
Nearest Beautiful Number (easy version)
n的范围是1#include#include#include#include#include#definelllonglongusingname
spaces
td;constintmaxn=1e6+7;sets1
:Alarm clock
·
2024-01-28 07:02
算法
逃避考试
#includeusingname
spaces
td;intconstN=1e3+10;intn,k,a[N],b[N];doublec[N];boolcheck(doublemid){for(inti=
:Alarm clock
·
2024-01-28 07:02
算法
c++
数据结构
线性求逆元(模板题)
直接上AC代码#includeusingname
spaces
td;#definelllonglongconstinttwx=3e6+100;constintinf=0x3f3f3f3f;llread()
:Alarm clock
·
2024-01-28 07:32
算法
数据结构
P8655 [蓝桥杯 2017 国 B] 发现环
#includeusingname
spaces
td;const
:Alarm clock
·
2024-01-28 07:57
算法
【算法1.1】模拟与高精度
模板代码:#include#include#include#includeusingname
spaces
td;//
不爱睡觉不爱起床的小Kiku
·
2024-01-28 06:44
洛谷官方题单
笔记
算法分析与设计
1.线段树#include#include#include#include#include#include#includeusingname
spaces
td;inttree[1005*4],a[1005
不爱睡觉不爱起床的小Kiku
·
2024-01-28 06:44
数据结构与算法
算法
c++
开发语言
CSP 202109-2 非零段划分
//202109-2//1)水面下降解法#includeusingname
spaces
td;con
joker D888
·
2024-01-28 04:09
算法与数据结构
算法
c++
csp
双指针法|位运算|离散化|区间合并
目录双指针算法位运算离散化序列合并双指针算法题目描述:1.输入n个单词,每个单词在输入的时候按空格隔开,之后打印出每个单词且换行#include#includeusingname
spaces
td;intmain
头发没有代码多
·
2024-01-28 04:52
习题
c++
算法
开发语言
四大同类基础算法总结:双指针算法思想 / 位运算 / 离散化算法 / 区间合并
一般的写法:for(inti=0,j=0;iusingname
spaces
td;constintN=100010;intn;intq[N],s[N];intmain(){scanf("%d",&n);for
PanyCG_pc
·
2024-01-28 04:21
算法
#
基础算法
算法
双指针
位运算
离散化
区间合并
药水由n种成分组成,每种成分的质量为正整数,第i种成分的比例为r[i], r[1]+...+r[n]=1, 给定n-1种关系:i, j, x, y, i / j = x / y,求药水质量最小值
题目思路:#includeusingname
spaces
td;#defineintlonglong#definepbpush_backconstintmaxn=1e6+5,inf=1e9+5,maxm=
__night_
·
2024-01-28 03:42
codeforces
算法
数轴(0 ~ m)上有n个不同点,最多只能移动一个点,移动到[1, m]中任意一点,求最终最小相邻两个点的距离的最大值是什么
#includeusingname
spaces
td;#defineintlonglong#definepbpush_backconstintmaxn=1e6+5,inf
__night_
·
2024-01-28 03:12
codeforces
算法
由两个有限项的等差数列B, C, 求有多少个有限项的等差数列A,满足C是A, B的所有公共项,若有无穷个A满足条件,输出-1
题目思路:#includeusingname
spaces
td;#defineintlonglong#definepbpush_backconstintmaxn=1e6+5,inf=1e9+5,maxm=
__night_
·
2024-01-28 03:10
codeforces
算法
算法.分组背包
#includeusingname
spaces
td;constintN=110;intn,m,v[N],w[N],dp[N],s;intmain(){cin>>n>>m;for(inti=0;i>s;for
丰海洋
·
2024-01-28 03:20
算法
算法
c++
图论
csp.第32次认证 202312-2 因子化简
#include#includeusingname
spaces
td;constintN=10000000;intn,m;longlonga[13];longlongb[13],c[N];intmain(
丰海洋
·
2024-01-28 03:20
算法
c++
数据结构
数据结构.线性表
1.静态分配#includeusingname
spaces
td;constintN=10;typedefstruct{intdata[N];intlength;}SqList;voidInitList(
丰海洋
·
2024-01-28 03:49
数据结构
数据结构
C++ 之setw() 函数
通常也会搭配其他函数使用:结语:简介:setw()函数用于设置字段的宽度使用方式:setw(n),其中n为数字,该函数用于接着的输出产生作用使用头文件例如:#include#includeusingname
spaces
td
黑菜钟
·
2024-01-28 02:29
c/c++
c++
开发语言
1047 Student List for Course(25 分)
直接映射就可以(之前使用的是map映射,每次读入name先在map里找一下是否存在,不存在就加入,这道题目没必要用map)#include#include#include#includeusingname
spaces
td
DaiMorph
·
2024-01-28 02:49
C++基础语法和用法
函数重载6.引用7.内联函数8.auto关键字,基于范围的for循环,空指针NULL8.1auto8.2基于范围的for循环8.3nullptr1.helloworld#includeusingname
spaces
td
Chris·Bosh
·
2024-01-28 02:15
C++
c++
开发语言
C++位图的应用与布隆过滤器
通常用于判断某个数据是否存在以上面试题可以用位图来解决:用一个二进制比特位来表示数据是否存在--二进制比特位为1表示存在,为0表示不存在位图的模拟实现#pragmaonce#include#includeusingname
spaces
td
Artiel
·
2024-01-28 01:27
C++
c++
acwing周赛36 B(经典不读题直接搜模板)
时间复杂度:O(n+m)代码:#includeusingname
spaces
td;vectorva[102];boolvis[102];intn,m;intcnt=0;voiddfs(intcur){/
想出成果的acmer
·
2024-01-28 01:26
acwing
深度优先
图论
算法
C. Palindrome Basis
#include#defineintlonglong#definexfirst#defineysecond#defineendl'\n'#definepqpriority_queueusingname
spaces
td
临江浪怀柔ℳ
·
2024-01-28 01:56
c语言
开发语言
OJ_叠框问题
问题描述c语言实现#define_CRT_SECURE_NO_WARNINGS#include#includeusingname
spaces
td;intmain(){intn;//存放外框尺寸inta,
Listennnn
·
2024-01-28 01:00
数据结构与算法
c语言
算法
OJ_日期问题
基础:已知某天的日期求下一天的日期#define_CRT_SECURE_NO_WARNINGS#include#includeusingname
spaces
td;voidNextDay(int&year
Listennnn
·
2024-01-28 01:28
数据结构与算法
算法
c语言
输入密码的前端代码
#includeintmain(){usingname
spaces
td;cout>code;cout<<"\aYouentered"<<code<<"...
zjqqh
·
2024-01-28 00:24
前端
有趣的队列
#includeusingname
spaces
td;typedefstructsqqueue{int*base;intfront;intrear;}Q;intmain(){sqqueueQ;intn,m
zjqqh
·
2024-01-28 00:24
算法
c++
数据结构
【蓝桥杯省赛真题】大臣的旅费(树形dp解法)
如下图所示:可列出如下状态转移方程:路费可通过等差数列公式求得:三、代码#includeusingname
spaces
td;intn;vectora[100005];mapb[100005];intdp
Memoriesage
·
2024-01-28 00:39
蓝桥杯刷题
算法
蓝桥杯
<< >> 快速使用二进制
使用>>和>4&1)当我要给一个数加1000(二进制)时a+=1usingname
spaces
td;intn;voiddfs(intu,intstate){if(u==n){for(inti
陈琦煜
·
2024-01-28 00:33
深度优先
算法
c++
C++中front,back,begin,end函数的用法以及sort可以对动态数组进行左端排序
begin用来返回第一个元素的地址,end返回最后一个元素的下一个位置的地址用法示例vectornums;nums.push_back(1);nums.push_back(2);coutusingname
spaces
td
陈琦煜
·
2024-01-28 00:33
C++从零开始
c++
算法
数据结构
滑雪问题(深度优先+动态规划)
Input输入的第一行表示区域的行数n和列数m(1usingname
spaces
td;constintMAX_ROWS=1
某个勤劳的孩子
·
2024-01-28 00:29
深度优先
动态规划
算法
ZISUOJ 2022年算法基础公选课练习三(Set)
参考题解:#includeusingname
spaces
td;//u
Beau_Will
·
2024-01-27 23:59
算法
数据结构
c++
c语言
[蓝桥杯]真题讲解:岛屿个数(BFS遍历图)
蓝桥杯]真题讲解:岛屿个数(BFS遍历图)一、视频讲解二、暴力代码(也是正解代码)一、视频讲解视频讲解二、暴力代码(也是正解代码)//岛屿个数:搜索(BFS/DFS)#includeusingname
spaces
td
Turing_Sheep
·
2024-01-27 23:41
备战蓝桥杯
#
搜索与图论题目
蓝桥杯
宽度优先
职场和发展
[蓝桥杯]真题讲解:飞机降落(DFS枚举)
(DFS枚举)一、视频讲解二、暴力代码(也是正解代码)一、视频讲解视频讲解二、暴力代码(也是正解代码)//飞机降落:暴力枚举DFS#include#defineintlonglongusingname
spaces
td
Turing_Sheep
·
2024-01-27 23:39
备战蓝桥杯
#
搜索与图论题目
蓝桥杯
深度优先
职场和发展
高精度加减乘除算法模板
才用的,Java中是不需要高精度算法的高精度加法:两个大的数相加(数的范围是大约为10^6)这里用vector来做模版题#include#include#include#includeusingname
spaces
td
温柔了岁月.c
·
2024-01-27 21:47
算法模板总结
算法
c++
高精度
高精度加法
高精度乘法
高精度除法
高精度减法
二进制float与int之间的转化关系
废话不多说,先上代码:#includeusingname
spaces
td;//二进制数不变(即01序列不变),从32位float型数据转成32位int型数据intfloat2BitInt(floata)
xiechaoyi123
·
2024-01-27 21:13
数学基础
c++
蓝桥杯练习-----子串分值
暴力解1:(只能获得百分之五十的分数)#includeusingname
spaces
td;inthashA[27];strings;intuniqueC(intl,intr){intans=0;for(
seventeena
·
2024-01-27 21:31
蓝桥杯
c++
c++程序设计活动策划类设计
#include#includeusingname
spaces
td;classActivity{public:stringname;stringdate;Activity(stringn="",stringd
可以输出hello了
·
2024-01-27 21:31
c++
开发语言
游戏程序
c++函数重载设计代码
#includeusingname
spaces
td;intaddNum(inta,intb){returna+b;}doubleaddNum(doublea,doubleb){returna+b;}floataddNum
可以输出hello了
·
2024-01-27 21:31
c++
算法
开发语言
蓝桥杯练习------基础练习
样例输入513-245样例输出5-211数据规模与约定1usingname
spaces
td;intm
qq_51263768
·
2024-01-27 21:01
蓝桥杯
函数——自制函数2(c++)
#include#includeusingname
spaces
td;floataaa(int);intmain(){intn;cin>>n;floatsum=0;for(inti=0;i>a;sum=sum
mmz1207
·
2024-01-27 21:27
c++
算法
数据结构
C++中const修饰成员函数(常函数与常对象及mutable用法)
后我们称为这个函数为常函数常函数内不可以修改成员属性成员属性声明时加关键字mutable后,在常函数中依然可以修改常对象:声明对象前加const称该对象为常对象常对象只能调用常函数下面案例帮助大家进一步理解#includeusingname
spaces
td
汐 源
·
2024-01-27 20:05
c++
开发语言
STL-函数对象
不是一个函数函数对象的使用函数对象在使用时,可以作为普通函数那样调用,可以有参数,可以有返回值函数对象超出普通函数的概念,函数对象可以有自己的状态函数对象可以作为参数传递#includeusingname
spaces
td
想要成为数据科学家的菜鸟
·
2024-01-27 20:47
C
c++
算法
开发语言
上一页
60
61
62
63
64
65
66
67
下一页
按字母分类:
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
其他