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
NameSpaces
P8647 [蓝桥杯 2017 省 AB] 分巧克力
#include#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;using
namespaces
td;voidGordenGhost(
GordenGhost
·
2024-03-07 13:37
蓝桥杯
c++
二分
算法
数据结构实现-线性表
顺序存储#includeusing
namespaces
td;#defineMaxSize50//静态顺序表templatestructsqList{ElemTypedata[MaxSize];//元素intlength
Mystic Musings
·
2024-03-06 22:19
数据结构实现
数据结构
考研
int与string类型转化(C++)
int转为string利用sstream类#include#includeusing
namespaces
td;intmain(){intn=10;stringstreamss;stringstr;ss>
Z-Chelsea
·
2024-03-06 00:51
C++
c++
开发语言
C++ 中大小写字母的转化
以下是常见的几种方式:1.利用ASCII码差值由于所有小写字母的ASCII码比对应的大写字母小32,可以简单地通过加减32来进行转换:#includeusing
namespaces
td;intmain(
wangnaisheng
·
2024-03-04 21:46
C++
c++
牛客周赛 Round 35(A,B,C,D,E,F,G)
code:#include#include#includeusing
namespaces
td;strings;
邪神与厨二病
·
2024-03-04 12:35
牛客
算法
暴力
c++
数论
滑动窗口
单调队列
贪心
构造
胎神游戏集第一期
那当然要先感谢我们的胎神大大了胎神洛谷名:TSzza好了,言归正传,知道你们不喜欢啰嗦,直接上代码一、变色小跳龙#include#include#include#include#includeusing
namespaces
td
偷心_鲸落
·
2024-03-03 15:36
游戏
洛谷
c++
游戏
c++
CF 1934B
冗长的代码(枚举解法)#includeusing
namespaces
td;voidsolve(){intn;cin>>n;if(n==1||n==3||n==6||n==10||n==15){cout=
三冬四夏会不会有点漫长
·
2024-03-03 10:59
#
CF
div
2
B
题
算法
【C++】核心编程--函数高级
文章目录1.函数的默认参数2.函数占位参数3.函数重载4.注意事项1.函数的默认参数在C++中,函数的形参列表中的形参是可以有默认值的//语法:返回值类型函数名(参数=默认值){}#includeusing
namespaces
td
赵远疴
·
2024-03-03 09:58
【C++】
c++
java
开发语言
鬼屋游戏c++
c++#include#include#include#include//用于随机数生成#include//用于随机数种子using
namespaces
td;//定义房间结构体structRoom{stringdescription
学习智者
·
2024-03-02 20:40
c++
Codeforces Round 929 (Div. 3)---->D. Turtle Tenacity: Continual Mods
2.极端情况就是按递增循序排序,如果这种情况都不行的话,那么就没有可行可情况,因为假如x#include#includeusing
namespaces
td;constintN=1e5+10typedeflonglongll
Touper.
·
2024-03-02 10:26
算法
【C++】一个求数组中最大元素的函数模板
CodeCodeCode#includeusing
namespaces
td;templateTMax_element(Ta[],intle
AC2656
·
2024-03-02 04:46
C++面向对象
c++
扫雷2(2537)
输入描述输入m+1行:第1行:2个整数m,n(nusing
namespaces
td;chara[110][110];intm,n;intmain(){cin>>
jht0105
·
2024-02-29 02:09
算法
c++
数据结构
牛客2024年除夕娱乐赛
A我有一款游戏code:#include#includeusing
namespaces
td;intmain(){cout#includeusing
namespaces
td;intmain(){cout#
邪神与厨二病
·
2024-02-29 01:38
牛客
娱乐
算法
c++
用C++做简易版和平精英
最近迷上了和平精英这款游戏,也是确定用C++做一款和平精英#include#include#include#include#include#include#includeusing
namespaces
td
AI迅剑
·
2024-02-24 11:29
c++
16.递推
定义:全局规律,每一项均可以由前面的几项计算得出俩个重要的要素1.边界:递推的起始点2.递推关系式:当前项与前面几项的关系习题:1188:菲波那契数列(2)#includeusing
namespaces
td
pointers_syc
·
2024-02-24 09:56
蓝桥杯算法
图论
算法
P1601 A+B Problem(高精)
P1601A+BProblem(高精)纯代码记录#includeusing
namespaces
td;inta[505],b[505];intaD,bD;intres[505];///@brief结果会是反着的
方糖--C++菜鸟程序员
·
2024-02-23 17:06
刷题代码记录
c++
CF 1921E
#includeusing
namespaces
td;voidsolve(){inth,w,xa,ya,xb,yb;cin>>h>>w>>xa>>ya>>xb>>yb;if(xa==xb){coutxb)
三冬四夏会不会有点漫长
·
2024-02-23 16:04
#
1600
算法
C++数据结构:队列模板
#include#includeusing
namespaces
td;classQueue{private:intq[100010];inthead=0,tail=0;public:voidpush(intx
UESTC_KS
·
2024-02-23 12:30
C++
c++
数据结构
算法
C++(12) 模板类、模板继承(严格模式和自由模式)
文章目录模版类1.模版类2.模版参数限制3.模版继承3.1严格模式3.2自由模式4.模版类的模版函数5.返回值类型带有模版模版类1.模版类#includeusing
namespaces
td;/*当前Person
Nuyoah.--
·
2024-02-23 00:46
c++
开发语言
c语言
学习
经验分享
Cholesky法(汇总)
,j;a=(double**)malloc(m*sizeof(double*));for(i=0;i=0;k--){temp=0;for(i=k+1;i#include"windows.h"using
namespaces
td
【执珪】瑕瑜·夕环玦
·
2024-02-22 23:44
计算方法实验
c++
c语言
c#
密钥加密问题
C++参考代码:#include#include#includeusing
namespaces
td;intmain(){vectorx;vectory;mapword;charch=getchar();
xioaobai_huan
·
2024-02-20 23:58
Java期末复习专栏
基础编程题目
java
数据结构
安全
c++
算法中关于数学的题目练习
p、q为正整数且互质,不能由p、q凑出来的最大的数为(p-1)(q-1)-1不知道数学结论可以打表找规律题解#include#defineintlonglong#defineendl'\n'using
namespaces
td
东东不熬夜
·
2024-02-20 23:26
算法
算法
c++
BZOJ-1055: [HAOI2008]玩具取名(区间DP)
代码:#include#include#includeusing
namespaces
td;#definerep(i,x)for(inti=0;i++
AmadeusChan
·
2024-02-20 21:50
【C++】---类和对象(中)默认成员函数 和 操作符重载
#includeusing
namespaces
td;classDate{private:int_year;int_month;
伤心男孩拯救世界(Code King)
·
2024-02-20 19:16
C++
c++
开发语言
【C++】实现Date类的各种运算符重载
继续以Date类为例,实现运算符重载:1.Date.h#pragmaonce#include#includeusing
namespaces
td;classDate{private:int_year;int_month
伤心男孩拯救世界(Code King)
·
2024-02-20 19:16
C++
c++
开发语言
【C++】---static成员(附OJ题)
#includeusing
namespaces
td;classA{public:A(){++countA;}A(constA&n){++c
伤心男孩拯救世界(Code King)
·
2024-02-20 19:08
C++
c++
java
算法
KMPC++(Acwing)
代码:#includeusing
namespaces
td;constintN=100010,M=1000010;intn,m;intne[N];chars[M],p[N];intmain(){cin>>
shady1972
·
2024-02-20 18:21
c++
算法
数据结构
单调队列C++(Acwing)
代码:#includeusing
namespaces
td;constintN=1000010;intn,k;inta[N],q[N];intmain(){scanf("%d%d",&n,&k);for(
shady1972
·
2024-02-20 18:51
c++
算法
数据结构
高精度除法C++(Acwing)
代码:#include#include#includeusing
namespaces
td;//C=A/b商是C,余数是rvectordiv(vector&A,intb,int&r){vectorC;r=
shady1972
·
2024-02-20 18:50
c++
开发语言
单调栈C++(Acwing)
代码:#includeusing
namespaces
td;constintN=100010;intn;intskt[N],tt;intmain(){cin.tie(0);cin>>n;for(inti=
shady1972
·
2024-02-20 18:50
c++
数据结构
算法
快速选择(第k小数)C++ (Acwing)
代码:#includeusing
namespaces
td;constintN=100010;intn,k;intq[N];intquick_sort(intl,intr,intk){if(l==r)returnq
shady1972
·
2024-02-20 18:20
c++
算法
数据结构
高精度加法C++(Acwing)
代码:#include#includeusing
namespaces
td;//C=A+B;vectoradd(vector&A,vector&B){vectorC;intt=0;//进位for(inti
shady1972
·
2024-02-20 18:20
c++
开发语言
Trie树C++(Acwing)
代码:#includeusing
namespaces
td;constintN=100010;intson[N][26],cnt[N],idx;charstr[N];voidinsert(charstr[
shady1972
·
2024-02-20 18:48
c++
数据结构
算法
备战蓝桥杯---数据结构之好题分享1
从整体上看似乎没有什么规律,于是我们从小地方入手,下面是图解:因此,我们用栈的数据结构实现即可,下面是AC代码:#include#include#include#include#includeusing
namespaces
td
CoCoa-Ck
·
2024-02-20 18:04
蓝桥杯
数据结构
算法
c++
c++面试题2023版
c++面试题一:编程基础using
namespaces
td;classA{private:constinta;//const成员constintb;//const成员public:A(inti,intj
散风少年
·
2024-02-20 18:03
c++
c++
排序刷题11
#include#include#include#includeusing
namespaces
td;boolcmp(constint&a,constint&
Sking426
·
2024-02-20 17:14
排序
算法
数据结构
c++
排序算法
c语言
暴力枚举刷题1
#include#includeusing
namespaces
td;typedeflonglongLL;intmain(){LLn,m,squ=0,rec=0;cin>>n>>m;for
Sking426
·
2024-02-20 17:11
暴力枚举
算法
数据结构
c++
c语言
开发语言
【C++航海王:追寻罗杰的编程之路】关于模板,你知道哪些?
#includeusing
namespaces
td;voidSwap(int&left,int&right){inttemp=left;lef
枫叶丹4
·
2024-02-20 17:01
C++
c++
开发语言
visualstudio
后端
洛谷C++简单题小练习day12—寻找最小值小程序
代码部分#includeusing
namespaces
td;intmain(){intn;cin>>n;//数字个数inta[n]
小杨想赢一次
·
2024-02-20 17:25
蓝桥备战冲!
c++
开发语言
数据结构
学习
算法
C++random库多次生成的随机数一样解决方法
问题:使用random库来生成随机数,代码如下:#include#includeusing
namespaces
td;intmain(){random_devicerd;mt19937g(rd());for
羊角问蕊
·
2024-02-20 15:16
c++
算法
开发语言
1971 - 大小写转换
样例输入A输出aC++代码#includeusing
namespaces
td;intm
荒芜见m
·
2024-02-20 15:40
算法
LeetCode刷题计划
刷题计划推荐代码随想录:https://github.com/youngyangyang04/leetcode-master卡码网练习ACM模式https://kamacoder.com/01#includeusing
namespaces
td
小豆包的小朋友0217
·
2024-02-20 15:37
leetcode
算法
职场和发展
1368 - 蜜蜂路线
题目描述一只蜜蜂在下图所示的数字蜂房上爬动,已知它只能从标号小的蜂房爬到标号大的相邻蜂房,现在问你:蜜蜂从蜂房M开始爬到蜂房N,1≤Musing
namespaces
td;intn,m,t;boolpd=
荒芜见m
·
2024-02-20 15:05
算法
c++
LeetCode刷题计划---day3
#include#includeusing
namespaces
td;intmain(){intn;inta,b;vectornums=vector(30,0);while(cin>>n){while(n
小豆包的小朋友0217
·
2024-02-20 15:30
leetcode
算法
职场和发展
LeetCode刷题计划---day2
07#include#include//头文件用于控制输出格式using
namespaces
td;intmain(){constintn=5;//等级个数doublegrade[n]={4.0,3.0,2.0,1.0,0.0
小豆包的小朋友0217
·
2024-02-20 15:00
leetcode
算法
职场和发展
[蓝桥杯2019初赛]等差数列
(注意A1#includeusing
namespaces
td;constintmaxn=100010;intn,a[maxn];//这是一个新的球最大公
Vincy_ivy
·
2024-02-20 14:10
洛谷 P8627 [蓝桥杯 2015 省 A] 饮料换购
参考代码and代码解读#includeusing
namespaces
td;intmain(){intn;scanf("%d",&n);intdr;//dr=drink;dr=n;//把drink赋值于n
126wkw2024
·
2024-02-20 14:05
蓝桥杯
算法
c++
c语言
模拟
嵌入式学习-C++-Day2
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()代码如下#includeusing
namespaces
td
CherylYYYYYY
·
2024-02-20 14:33
学习
c++
算法
嵌入式学习-C++-Day3
代码#includeusing
namespaces
td;classPer{private:stringname;intage;double*height;double*weight;public:Per
CherylYYYYYY
·
2024-02-20 14:33
学习
c++
开发语言
C++,stl,常用排序算法,常用拷贝和替换算法
常用排序算法sortrandom_shufflemergereverse2.常用拷贝和替换算法copyreplacereplace_ifswap1.常用排序算法sort默认从小到大排序#includeusing
namespaces
td
柏箱
·
2024-02-20 14:43
C++STL
c++
排序算法
算法
stl
拷贝和替换算法
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
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
其他