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
篮桥云课-摆玩具
发现看看逐个位置的差,我们要分成k段就是要取消k-1个最大的逐差然后将剩余的加起来就可以了因为本体保证是从小到大给出的这一点保证了答案的正确性,自己没想出来还是太菜了#includeusingname
spaces
td
灬德布罗意的猫灬
·
2023-11-30 04:00
思维
算法
F. Magic Will Save the World
可以尽量的多选怪物使用水魔法攻击剩余的再用火魔法进行攻击,也就是只要存在合法的体积(即装入背包的怪物的体积之和)就可以用水魔法攻击,然后维护最小值就行了#includeusingname
spaces
td
灬德布罗意的猫灬
·
2023-11-30 04:59
贪心
思维
DP
算法
动态规划
push_back和emplace_back区别
1.测试代码#include#includeusingname
spaces
td;classA{public:A(inti,intj):i_(i),j_(j){coutv;v.reserve(20);cout
CrazyFox%
·
2023-11-30 03:32
c++
CPP 一维数组逆序
数组作为参数时,就是引用型的#includeusingname
spaces
td;voidInvertArray(inta[],intn){inti,j,temp;for(i=0,j=n-1;i
李药师_hablee
·
2023-11-30 03:08
【数据结构/C++】线性表_顺序表的基本操作
#includeusingname
spaces
td;#defineMaxSize10//1.顺序表//静态分配//创建匿名结构体typedefstruct{intdata[MaxSize];intlength
小谢sd
·
2023-11-30 03:58
数据结构
C/C++
数据结构
c++
开发语言
C++数组
引言5.2一维数组5.2.1一维数组的定义方式数组的特点:1.放在一块连续的内存空间中2.数组中每个元素都是相同的数据类型我们可以通过下标访问数组中的元素#includeusingname
spaces
td
only-lucky
·
2023-11-30 03:52
C++
c++
C++语言中关于switch的用法
如下面这个用if的简单的判断结构:#includeusingname
spaces
td;intmain(){inta=2,b=3,sum;sum=a+b;if(sum=4){coutusingname
spaces
td
立乱来
·
2023-11-30 02:11
C++语法
switch用法
c++
编程语言
浅学指针----cout输出代码笔记
【概念来源百度百科】#include#includeusingname
spaces
td;intmain(){cout<<"He
AnsonNie
·
2023-11-30 02:40
C++
关于switch选择语句的使用
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;intmain(){inta=1;intb=2;switch
csdn_1997
·
2023-11-30 02:07
c++
C++结构体嵌套循环赋值打印
创建老师结构体数组,每个老师单元有一个学生数组,每个学生数组包括姓名和分数,函数1实现对老师和其学生信息的赋值,函数2实现对所有信息的打印#include#include#includeusingname
spaces
td
Mozart086
·
2023-11-30 02:52
C++基础笔记
c++
CF 1896 A. Jagged Swaps 学习笔记
链接传送门代码#includeusingname
spaces
td;constintN=20;inta[N];intmain(){intt;scanf("%d",&t);while(t--){intn;scanf
三冬四夏会不会有点漫长
·
2023-11-30 02:15
Codeforces
学习
笔记
简单代码编写a+b
我们先把代码框架编好:#includeusingname
spaces
td;intmain(){return0;}然后我们来定义,首先,a+b,两个加数,还有c(也就是和)。所以一共3个数。
HIM的部下
·
2023-11-30 01:44
c++
c语言
算法
1130 - 简单a+b
样例输入复制1+2=输出复制3#includeusingname
spaces
td
超级编程大王
·
2023-11-30 01:11
c++
c++ opencv对单个像素进行处理
#includeusingname
spaces
td;#include"opencv.hpp"usingnamespacecv;//颜色空间缩减函数voidColorReduce(Matinput,Matout
irelia03
·
2023-11-30 01:05
[C++之旅] 4 C++的引用
[C++之旅]4C++的引用基本数据的引用intapples=4;int&apples_a=apples;//apples_aisquoteofapplescoutusingname
spaces
td;typedefstruct
Onicc
·
2023-11-29 23:52
班级:L3-A 姓名:Pearl 学号:20193000140日期:2020/5/3 作业序号(Writing Assignment No.):006题目:One ...
Buildingabigcarparkdowntown.Ontheonehand,enablingmorecarownerstohaveparking
Spaces
cangreatlyreducethenumberofcarsontheroad.Thussolvetheproblemoftrafficcongestion
Pearl_a978
·
2023-11-29 23:36
PAT-basic/advanced
,待查#include#include#include#include#include#include#include#include#include#include#includeusingname
spaces
td
yz_wang
·
2023-11-29 23:21
CCFCSP试题编号:202109-2试题名称:非零段划分
用差分法#include#include#includeusingname
spaces
td;constintN=500000;constintM=10000;inta[N+2]={0};intd[M+1
可乐不加冰呀
·
2023-11-29 23:07
ccf-csp练习题题解
算法
c++
第三届“传智杯”全国大学生IT技能大赛(初赛B组)
T160507A-课程报名#includeusingname
spaces
td;intn,v,m,a;intmain(){cin>>n>>v>>m>>a;intsum=0;for(inti=0;iusingname
spaces
td
leimingzeOuO
·
2023-11-29 22:58
洛谷
C++
c++
算法
排序
字符串
递归
第三届“传智杯”全国大学生IT技能大赛(初赛B组)代码
A-课程报名模拟#includeusingname
spaces
td;typedeflonglongll;intmain(){ios::sync_with_stdio(false),cin.tie(0),
mp-ui
·
2023-11-29 22:28
#
算法比赛
11.29 c++类
#includeusingname
spaces
td;classRect{private:doublehigh;doublewide;public:voidinit(intw,inth);voidset_w
久驻
·
2023-11-29 22:43
c++
开发语言
算法
Writing a simple publisher and subscriber (C++)ROS2发布者订阅者
include#include#include#include#include"rclcpp/rclcpp.hpp"#include"std_msgs/msg/string.hpp"usingname
spaces
td
纳米机器人geniusNMRobot
·
2023-11-29 22:35
算法
ros2
c++
传智杯-题目1
运气一:对于每一的1到6都进行枚举,进行递归操作二:如果位数到了指定的n的时候,递归的条件,进行判断是否可以整除操作#include#includeusingname
spaces
td;longlongn
一直爱莲子
·
2023-11-29 22:23
#
算法竞赛
算法
PAT-10道题
PAT算法刷题10021002一:对于每一的1到6都进行枚举,进行递归操作二:如果位数到了指定的n的时候,递归的条件,进行判断是否可以整除操作#include#includeusingname
spaces
td
一直爱莲子
·
2023-11-29 22:47
#
PAT
算法
ac自动机(字典树和kmp的延伸)(待更新)
(hdu2222)#include#pragmaGCCoptimize(2)usingname
spaces
td;typedeflonglongll;constintinf=0x3f3f3f3f;constintmaxn
蒲公英之殇
·
2023-11-29 21:12
字符串
算法
AC自动机模板(hdu2222)
#includeusingname
spaces
td;constintkind=26;structnode{node*fail;//失败指针node*next[kind];//Tire每个
weixin_34208283
·
2023-11-29 21:11
数据结构与算法
字符串(1)题集
【字典树】数组模板#include#include#include#include#include#includeusingname
spaces
td;#defineidx(x)x-'a';constintMAXN
saragrean
·
2023-11-29 21:09
字符串(1)
===
数据结构
===
字符串
KMP题集
#includeusingname
spaces
td;constintN=1e6+7;inta[N],b[N],n,m,nxt[N];voidgetNext(ints[],intn,intnxt[]){inti
jinglinxiao
·
2023-11-29 21:08
KMP
使用正则表达式将多个连续空格替换为单个空格 下划线分割
/***使用正则表达式将多个连续空格替换为单个空格下划线分割**@paramisTrim是否先去除开头结尾空格*/publicstaticStringreplace
Spaces
(Stringinput,
xiaoerbuyu1233
·
2023-11-29 21:26
正则表达式
【C++初阶】:简单的图书管理系统(可保存,完整源代码)
图书管理系统library.h#include#include#includeusingname
spaces
td;/*******************************************
菜花籽
·
2023-11-29 20:51
C++初阶
c++
开发语言
11月28日作业
提示并输入一个字符串,统计该字符中大写,小写字母个数,数字个数,空格个数以及其他字符个数,要求使用C++风格字符串完成#includeusingname
spaces
td;intmain(){stringstr
Cloudy浊云
·
2023-11-29 20:07
算法
c++
11月29日作业
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusingname
spaces
td
Cloudy浊云
·
2023-11-29 20:07
c++
C++ 语法
C++语法#includeusingname
spaces
td;intmain(){//控制台输出std::cout5){cout5"<
彦楠
·
2023-11-29 19:14
C++
c++
开发语言
灵茶每日一题 -- 2023 - 11 -29
然后这样遍历相加即可;代码:#include#defineIOSios::sync_with_stdio(0);cin.tie(0);cout.tie(0);#defineendl'\n'usingname
spaces
td
ros275229
·
2023-11-29 19:12
算法学习
灵茶
CF
c++
算法
蓝桥杯每日一题2023.11.27
题目描述星系炸弹-蓝桥云课(lanqiao.cn)题目分析对于此题目一一枚举即可#includeusingname
spaces
td;boolis_r(intn){if((n%4==0&&n%100!
Akct
·
2023-11-29 18:05
蓝桥杯
职场和发展
蓝桥杯每日一题2023.11.28
“祥”一定不为0(有前导0就不能算为4位数)使用搜索时将其特判#includeusingname
spaces
td;constintN=10;inta[N];boolv[N];voiddfs(intdep
Akct
·
2023-11-29 18:30
蓝桥杯
职场和发展
c# 与 c++ 内存共享
c++//main.cpp#include#include#includeusingname
spaces
td;#defineBUF_SIZE1024intmain(intargc,TCHAR*argv[
jiegemena
·
2023-11-29 17:43
c++
C++基础知识 - 子类的析构函数
,会实现动态的析构:如果基类指针指向的是基类对象,那么只调用基类的析构函数如果基类指针指向的是子类对象,那么先调用子类的析构函数,再调用父类的析构函数#include#includeusingname
spaces
td
骆驼胡杨
·
2023-11-29 17:24
C++
c++
开发语言
后端
【C 语言经典100例】C 练习实例17
#includeintmain(){charc;intletters=0,
spaces
=0,digits=0,others=0;printf("请输入一些字母:\n");while((c=getchar
时义龙
·
2023-11-29 16:37
c语言例题
c语言
开发语言
11.28C++
#includeusingname
spaces
td;intmain(){stringstr;cout='A'&&str.at(i)='a'&&str.at(i)='0'&&str.at(i)<='9')
久驻
·
2023-11-29 16:16
c++
算法
开发语言
洛谷P1758 [NOI2009]管道取珠(dp 贡献转化)
题目bzoj1566两个管道的小球序列,分别用长为n(nusingname
spaces
td;constintN=505,mod=1024523;intn,m,dp[2][N][N];chars[N],t
Code92007
·
2023-11-29 16:31
#
dp
贡献
思维题
openjudge NOI / 1.7编程基础之字符串
#include#includeusingname
spaces
td;constintN=99999;chars[N+1];inta[26];chars1[N+1];intmain(){intk=0;cin
wshy409
·
2023-11-29 16:29
c++
NOI / 1.7编程基础之字符串01:统计数字字符个数
题目#includeusingname
spaces
td;chara[260];//一个字符类
东风快递运营商
·
2023-11-29 16:59
c++
算法
蓝桥杯
NOI / 1.7编程基础之字符串
/*Accepted*/#include#include#includeusingname
spaces
td;inttab[600][600];strings1;strings2;intlen1,len2
爱吉他的小兔子
·
2023-11-29 16:55
openjudge
NOI
动态规划
NOI / 1.7编程基础之字符串 王曙翰
01统计数字字符个数#includeusingname
spaces
td;intmain(){stringa;getline(cin,a);intcount=0;for(inti=0;iusingname
spaces
td
happy567567
·
2023-11-29 16:54
c++
NOI / 1.7编程基础之字符串 15:整理药名
#include#include#include#include#include#include#include#includeusingname
spaces
td;stringformat(conststring
fffffighting_
·
2023-11-29 16:24
c++
NOI / 1.7编程基础之字符串 11:潜伏者
#include#includeusingname
spaces
td;charA[26]={'0','0','0','0','0','0','0','0','0','0','0','0','0','0',
fffffighting_
·
2023-11-29 16:23
c++
NOI / 1.7编程基础之字符串——02:找第一个只出现一次的字符
样例输入abcabd样例输出c#includeusingname
spaces
td;intmain(){charA[100001],a
普青落
·
2023-11-29 16:53
NOIP解题系列
c++
NOI / 1.7编程基础之字符串——02:找第一个只出现一次的字符(两种方法)
样例输入abcabd样例输出c#includeusingname
spaces
td;intmain(){intb[27]={0};chara[100001];cin>>a;int
普青落
·
2023-11-29 16:53
NOIP解题系列
c++
c语言
c#
Bone Collector(01背包问题)详解
Input输入的第一行是T,表示有T组数据.每组数据由三行组成.第一行包含两个整数N和V(N#definelllonglongusingname
spaces
td;intw[1005],v[1005];/
逍遥Fau
·
2023-11-29 15:06
动态规划
算法
acm竞赛
动态规划
c++
上一页
116
117
118
119
120
121
122
123
下一页
按字母分类:
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
其他