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
2982. 找出出现至少三次的最长特殊子字符串 II
字典树思路用字典树搞一下就好了,比如aaaaa:a存5次aa4次以此类推~字典树板子复习:P8306【模板】字典树这里这个清空方式很好因为很多时候memsetT#include#includeusingname
spaces
td
灬德布罗意的猫灬
·
2024-01-28 22:02
数据结构
算法
数据结构
c++
leetcode
学习
牛客小白月赛85 E.烙饼
主要是学一下它的这个构造方法~看题不仔细直接脑瘫#includeusingname
spaces
td;usingll=longlong;constintN=1e5+10;lla[N],b[N];lln,m
灬德布罗意的猫灬
·
2024-01-28 22:02
思维
模拟
算法
c++
职场和发展
D. Gargari and Permutations
很好玩的一道类似LCS的DP问题定义dp(i)为考虑最后一个字符串,且选择a(i)得到的最大LIS值然后枚举所有小于i的位置,可以更新的条件是所有的字符串中都有a[j]usingname
spaces
td
灬德布罗意的猫灬
·
2024-01-28 22:01
DP
思维
c++
算法
学习
第20届纪念款-牛客周赛 Round 20 B.C简单构造
B答案要么是0要么是1所以你全部填0或者要么填1然后算就好了#includeusingname
spaces
td;usingll=longlong;constintN=1e5+10;intn;voidsolve
灬德布罗意的猫灬
·
2024-01-28 22:00
模拟
思维
c语言
蓝桥杯
c++
算法
学习
职场和发展
std::for_each
该函数的头文件为``,定义在`name
spaces
td`中,因此需要包含该头文件才能使用该函数。
猿饵块
·
2024-01-28 22:29
java
c++
开发语言
C/C++中使用PI(π)的几种方法
示例如下:1.使用math中的宏定义M_PI;#include#define_USE_MATH_DEFINES//在某些编译器(如VisualStudio)中需要此行来启用M_PI的定义usingname
spaces
td
wangnaisheng
·
2024-01-28 22:40
C++
c++
侯捷《C++标准11-14》笔记
#includeusingname
spaces
td;voidprint(){}templatevoidprint(constT&firstArg,constTypes&...args){coutusingnamespa
小林up
·
2024-01-28 21:09
C和C++
c++
笔记
开发语言
大水题-买不到的数目
水代码#includeusingname
spaces
td;boolst[1000010];intres;intmain(){inta,b;scanf("%d%d",&a,&b);for(inti=0;a
随风而散y
·
2024-01-28 21:49
算法
c++
算法
开发语言
k倍区间(c++实现)
#includeusingname
spaces
td;constintN=100010;longlongintq[N],s[N];intn,k;longlongintres;intmain(){scanf
随风而散y
·
2024-01-28 21:19
算法
c++
算法
开发语言
二分求解四平方和(c++实现)
#include#include#includeusingname
spaces
td;constintN=2500010;structSum{ints,c,d;}sum[N];intn,m;boolcmp
随风而散y
·
2024-01-28 21:18
算法
c++
算法
数据结构
递推求解飞行员兄弟(c++实现)
#include#include#includeusingname
spaces
td;constintN=6;chars[N][N],backup[N][N];intdx[13]={0,0,0,0,1,2,3
随风而散y
·
2024-01-28 21:48
算法
c++
算法
数据结构
分巧克力(二分实现C++)
#includeusingname
spaces
td;constintN=1e5+10;inth[N],w[N];intn,m;boolcheck(intmid){intres=0;for(inti=0;
随风而散y
·
2024-01-28 21:45
算法
c++
算法
数据结构
蓝桥杯 算法训练 平方计算
样例输入56样例输出1注:a的平方可以写成a*a#include#includeusingname
spaces
td;intmain(){inta,m;cin>>a>>m;cout
开心比对错重要
·
2024-01-28 21:44
蓝桥杯
算法
c++
c语言
数据结构
iOS苹果超级签名
签名你可能听过比较有名气的:
Spaces
hip
Spaces
hip
夜雨_0fef
·
2024-01-28 20:10
ABC333题解(A~F)
前置感觉这场难度Ausingname
spaces
td;#defineintlonglongintn;signedmain(){cin>>n;for(inti=1;iusingname
spaces
td;#
鹖弁
·
2024-01-28 20:24
CF/ATC题解
深度优先
图论
算法
ABC334题解(A~F)
代码示例#includeusingname
spaces
td;#defineintlonglong#definemax(a,b)(a>b?a:b)inta,b;signe
鹖弁
·
2024-01-28 20:24
CF/ATC题解
算法
深度优先
图论
[OpenGL] 绘制并且判断凹凸多边形、自相交多边形。
#include#include#include#include#includeusingname
spaces
td;structPos{intx;inty;};structEdge{intx1,x2;inty1
弱花
·
2024-01-28 20:50
郑州大学2024年寒假训练 Day2:循环,一维数组,排序,贪心(A-J)
code:#include#includeusingname
spaces
td;constintmaxn=1e6+6;typedeflonglongll;intn,c,r[maxn];intmain(){
邪神与厨二病
·
2024-01-28 20:41
比赛
算法
zzu
贪心
c++
数据结构.单链表
3.删除4.查找5.建立链表6.头插法可以用来实现链表的逆置代码:#includeusingname
spaces
td;constintN=10;typedefstructLNode{intdata;LNode
丰海洋
·
2024-01-28 20:40
数据结构
数据结构
zzu 2024寒假训练day2(A-D,F-I)
目录1.A2.B3.C4.D5.F6.G7.H8.I题目链接1.A每种垃圾大于它的对应垃圾桶的容量时,多出的部分就只能丢入最后一个垃圾桶#includeusingname
spaces
td;constintmaxn
像风一样_
·
2024-01-28 20:40
算法
c++
2024.1.20 寒假训练记录(3)
明天补题文章目录CF960FPathwalksCF960FPathwalks题目链接主席树中结点的l和r表示左右子结点的编号而不是该结点的范围,要注意它和线段树的区别#includeusingname
spaces
td
Texcavator
·
2024-01-28 20:40
2024寒假训练记录
算法
zzu 2024寒假训练day1(A-I)
#includeusingname
spaces
td;constintmaxn=1e5+5;list::iteratorpos[maxn];boolerase
像风一样_
·
2024-01-28 20:10
算法
HDU--2039 给定三条边,请你判断一下能不能组成一个三角形。
其中A,B,C#include"cmath"usingname
spaces
td;intmain(){
119236489126
·
2024-01-28 20:52
C++
给定三条边,请你判断一下能不能组成一个三角形。C++
#includeusingname
spaces
td;intmain(void){intA,B,C,M;cin>>M;while(M--
椰子君coool
·
2024-01-28 19:20
算法刷题:P4994 终于结束的起点
#includeusingname
spaces
t
迷路的小鹿斑比_Perry
·
2024-01-28 19:17
算法
算法刷题:P1908 逆序对
#includeusingname
spaces
td;intn,data[500010],has[500010];longlongans;voidmsort(intb,
迷路的小鹿斑比_Perry
·
2024-01-28 19:17
算法
算法刷题:P1025 [NOIP2001 提高组] 数的划分
输入格式n,k(6usingname
spaces
td;intn,k;intans;//now作为每次递归列举的数值,即当前盒子里面放的苹果数,sum用来记录已经放进盒子的苹果总数,re用
迷路的小鹿斑比_Perry
·
2024-01-28 19:46
算法
//给定三条边,请你判断一下能不能组成一个三角形。
其中A,B,Cusingname
spaces
td;intmain(){doubleA,B,C,x,y;scanf("%lf%lf%lf",&A,&B,&C);x=A+B;y=A-B;doublefabs
浅浅摆烂一下
·
2024-01-28 19:15
初学者可能会遇到的一些问题
一起讨论
c++
蓝桥杯
开发语言
给定三条边,请你判断一下能不能组成一个三角形【c++】
#include//给定三个边,求这三个边能不能围成一个三角形usingname
spaces
td;intmain(){doublen,m,k;while(cin>>n>>m>>k){if((n+m>k)
Willing_hope
·
2024-01-28 19:44
日常练习
算法刷题:p1387 最大正方形
那么动态方程就是flag[i][j]=min(flag[i-1][j],min(flag[i-1][j-1],flag[i][j-1]))+1;左侧和上方以及左上方中最小值+1#includeusingname
spaces
td
迷路的小鹿斑比_Perry
·
2024-01-28 19:42
算法
倒计时71天
复盘3.续6)A-ACCEPT_牛客小白月赛85(nowcoder.com)#includeusingname
spaces
td;constintN=3e4+5;constintinf=0x3f3f3f3f
算法怎么那么难啊
·
2024-01-28 18:05
c++
╥﹏╥...倒计时72天╥﹏╥...
复盘3.19.0数字三角形-蓝桥云课(lanqiao.cn)#includeusingname
spaces
td;constintN=3e2+5;#defineintlonglongconstintinf
算法怎么那么难啊
·
2024-01-28 18:33
c++
菜鸡小白刷题日记4.10
题源洛谷P1049题目描述有一个箱子容量为V(正整数,0≤V≤20000),同时有n个物品(0#include#includeusingname
spaces
td;cons
zzygo
·
2024-01-28 18:06
力扣76.最小覆盖子串
#include#include#include#include#include#include#include#includeusingname
spaces
td;classSolution{public
赟家小菜鸟
·
2024-01-28 17:24
每日一题
leetcode
算法
c++
8.C++ 类对象空指针访问成员函数
我们看下面的代码及其运行情况:#includeusingname
spaces
td;classPerson{public://定义Person类的一个成员函数voidShowClassFunc(){coutShowClassF
Yoga...
·
2024-01-28 17:49
C++学习笔记
c++
开发语言
二叉树辅助函数,用于acm模式刷题
#includeusingname
spaces
td;//先定义TreeNode和Solution类//...voidprintInOrder(TreeNode*node){if(node==nullptr
dc爱傲雪和技术
·
2024-01-28 17:11
c++
算法
数据结构
C++:引用类型(int &)
引用类型给变量起别名数据类型&别名=原名#includeusingname
spaces
td;intmain(){inta=10;int&b=a;coutusingname
spaces
td;intmain
Michael_chemic
·
2024-01-28 17:36
C++
c++
经验分享
13.谓词
bool类型的仿函数称为谓词如果operator()接受一个参数,那么叫做一元谓词如果operator()接收两个参数,那么叫做二元谓词13.1一元谓词#include#includeusingname
spaces
td
霜晨月c
·
2024-01-28 16:46
#
C++提高编程
c++
算法
开发语言
学习
笔记
阿富汗塔利班兴起时的比赛代码3475:练85.3 删数问题(Noip1994)
【输入样例】1754384【输出样例】13#includeusingname
spaces
td;i
gezhengxu2024
·
2024-01-28 16:13
编程启蒙
c++
c++
编程启蒙
c++学生系统(gezhengxu2024独创)
还有亿些问题)=========================================================================#include#includeusingname
spaces
td
gezhengxu2024
·
2024-01-28 16:13
c++
系统
c++
学生系统
【每日一题】YACS 243:5G通讯
(1usingname
spaces
td;typedeflonglongll;lln,d,a[100005];i
超哥聊信奥
·
2024-01-28 14:17
每日一题
5G
算法
c++
数据结构
图论
学习
蓝桥OJ3291区间更新
进行区间更新之后必须要用前缀和还原才能得到原数组#includeusingname
spaces
td;constintN=1e5+3;inta[N],diff[N];voidsolve(intn,intm
懒羊羊oo
·
2024-01-28 12:34
蓝桥杯备赛练习
算法
c++
蓝桥OJ1276小明的彩灯
#includeusingname
spaces
td;constintN=1e6+3;usingll=longlong;lla[N],diff[N];intmain(){ios::sync_with_stdio
懒羊羊oo
·
2024-01-28 12:34
蓝桥杯备赛练习
算法
c++
蓝桥第4场小白入门赛第4题 乘飞机
#includeusingname
spaces
td;usingll=longlong;constllN=1e5+5;lla[N];intmain(){lln,q;cin>>n>>q;for(inti=1
懒羊羊oo
·
2024-01-28 12:34
蓝桥杯备赛练习
算法
c++
*蓝桥OJ760数的计算
#includeusingname
spaces
td;constintN=1e3+5;inta[N];intdfs(intdep){intres=1;for(inti=1;i>n;a[1]=n;cout
懒羊羊oo
·
2024-01-28 12:04
蓝桥杯备赛练习
算法
深度优先
c++
*蓝桥OJ3904DNA序列配对
#includeusingname
spaces
td;mapmp{{'A',0},{'C',1},{'G',2},{'T',3}};intmain(){intn;cin>>n;stringa,b;cin>
懒羊羊oo
·
2024-01-28 12:03
蓝桥杯备赛练习
c++
算法
输入两个字符串,从第一字符串中删除第二个字符串中所有的字符
#includeusingname
spaces
td;constintN=150;intmain(){stringa,b,ans;boolflag[N];memset(flag,1,N);getline(
懒羊羊oo
·
2024-01-28 12:03
蓝桥杯备赛练习
算法
c++
最大的卡牌价值(c++)
#includeusingname
spaces
td;usingll=longlong;constintN=1e5
懒羊羊oo
·
2024-01-28 12:33
c++
数据结构
算法
蓝桥OJ3694肖恩的投球游戏plus
二维差分#includeusingname
spaces
td;constintN=1e3+5;inta[N][N],d[N][N];intmain(){intn,m,q;cin>>n>>m>>q;for(
懒羊羊oo
·
2024-01-28 12:31
蓝桥杯备赛练习
算法
c++
深度探索C++对象模型(13)——数据语义学(3)——单类继承下数据成员布局
1.单一继承下的数据成员布局代码1:#include#includeusingname
spaces
td;classFAC//父类{public:intm_fai;intm_faj;};classMYACLS
喵的波波鱼
·
2024-01-28 12:29
C++对象模型
上一页
59
60
61
62
63
64
65
66
下一页
按字母分类:
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
其他