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
信息学奥赛一本通(C++版)第1018题目:其他数据类型存储空间大小 答案
语言:G++14代码:#include#include#include#include#include#include#include#include#definenullNULLusing
namespaces
td
乐观的披萨
·
2025-05-16 16:17
信息学奥赛一本通(C++版)
c++
算法
开发语言
6.27 C++初级 作业
#includeusing
namespaces
td;namespaceMyspace{voidfanzhuan(stringstr){inti=0;intj=0;chartemp;
野猪骑士丶
·
2025-05-16 16:14
c++
开发语言
一个好玩的游戏(很难过关)
include#include#include#include#include#include#include#include#include#include#include#includeusing
namespaces
td
myl4805
·
2025-05-16 14:36
游戏
求大家投下我们美团吧,白菜起包40,sp普遍50可是没人投
状态码查询方法华为客户经理面试—二面三面贫穷给我们带来的或许不是遗憾,而是一次又一次的“不得不”暑期实习大结局,双非太难了题解|#找最小数##include#includeusi题解|#判断身材状态##includeusing
namespaces
td
2301_78234743
·
2025-05-16 10:09
java
编程日志4.18
顺序表题目:1.Problem-2006固定模板:#includeusing
namespaces
td;#defineeleTypeint//定义eleType为整型//#defineeleTypefloat
牛牛程序员成长日记
·
2025-05-16 07:41
算法
数据结构
石子归并 CSU - 1592 (区间dp,线性dp)
Input第一行包含一个整数T(T#include#include#include#include#defineLLlonglong#defineINF0x3f3f3f3fusing
namespaces
td
czdb
·
2025-05-16 00:54
dp
ACM
dp
栈与乘积 / 栈
题目代码#includeusing
namespaces
td;usingll=longlong;constintN=1e5+10;structnode{intw,pos;};nodestk[N];intp
Kent_J_Truman
·
2025-05-15 18:08
蓝桥杯
蓝桥杯13届国赛 2022
#includeusing
namespaces
td;longlongf[15][2500];//f[k][j]:用k个不同的数凑出j的方案数intmain(){f[0][0]=1;//初始化:0个数凑0
咚咚轩
·
2025-05-15 04:06
蓝桥杯
背包问题
C++ set&multiset 容器:迭代器、大小以及删除
元素插入后会自动按升序排列唯一性:每个元素的值必须唯一(multiset允许重复)基于红黑树:底层通常用红黑树实现,保证高效查找(O(logn))2.基本操作2.1包含头文件与声明#include//必须包含set头文件using
namespaces
苕皮蓝牙土豆
·
2025-05-15 03:28
C++
STL容器
c++
开发语言
【数据结构入门训练DAY-30】数的划分
输入格式两个整数n,k(6using
namespaces
td;#defineMax200intsum
不会计算机的捞地
·
2025-05-15 03:58
数据结构入门训练
数据结构
算法
深度优先
编程日志5.5
树的结构代码#includeusing
namespaces
td;//由于树的每个结点可能有一些孩子结点,这些孩子结点的数量不确定,所以可以用一个链表来把所有的孩子结点给串起来//链表结点定义//这段代码定义了一个结构体
牛牛程序员成长日记
·
2025-05-15 00:08
c++
数据结构
算法
牛客周赛 Round 92-题解
牛客周赛Round92-题解A-小红的签到题code#include#includeusing
namespaces
td;strings;intmain(){intn;cin>>n;cout=n||y>=
hongjianMa
·
2025-05-14 16:46
#
算法竞赛训练
算法
牛客
c++
题解
牛客算法周周练E地、颜色、魔法
include#include#include#include#include#include#include#include#include#include#include#includeusing
namespaces
td
hesorchen
·
2025-05-14 14:59
#
BFS
题解
easyx--上半部分
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusing
namespaces
td;//只能在c++上运行(文件为.cpp)#include/
^O^凡人多烦事
·
2025-05-14 10:36
c++
easyx
c++
【OpenCV】C++实现视频播放器 #1 暂停和播放
#include#includeusingnamespacecv;using
namespaces
td;声明全局变量VideoCapturecap;//读取视频Matframe;//储存每一帧主函数框架如下
migeee
·
2025-05-14 10:04
数字图像/视频处理
opencv
c++
音视频
【C++】:STL详解 —— 红黑树封装map和set
目录红黑树的源代码正向迭代器的代码反向迭代器的代码set的模拟实现map的模拟实现红黑树的源代码#pragmaonce#includeusing
namespaces
td;//set->key//map-
-元清-
·
2025-05-14 10:31
重制C++版
c++
java
开发语言
c语言
windows
算法
数据结构
欧拉筛代码讲解
实现代码#includeusing
namespaces
td;intmain(){intn;cout>n;bool*a=newbool[n]();//表示是否为素数,0是素数,1是合数int*b=newint
指针的值是地址
·
2025-05-14 09:54
每日一道编程题
随笔记
c++
C++STL(string底层实现)
string.h#pragmaonce#include#includeusing
namespaces
td;namespacerain{classstring{public:typedefchar*iterator
晴天下小雨o
·
2025-05-14 01:01
c++
算法
牛客周赛 Round 92
目录A-小红的签到题代码B-小红的模拟代码C-小红的方神题代码D-小红的数学题代码无注释版有注释版E-小红的ds题代码无注释版有注释版A-小红的签到题代码#includeusing
namespaces
td
三流搬砖艺术家
·
2025-05-13 23:50
牛客
算法
数据结构
c++
图论
C++_wcout / C_wprintf (wcout输出中文)
int_tmain(intargc,_TCHAR*argv[]){wcout.imbue(std::locale("chs"));wstrings=(L"我爱");wcout#includeusing
namespaces
td
高达一号
·
2025-05-13 22:17
C++
C
C++
C
wcout
2025.5.13 单调栈
所以时间复杂度是o(n)左边小版本:#includeusing
namespaces
td;constintN=100010;intstk[N],tt=-1;intn;intmain(){cin>>n;for
evy
·
2025-05-13 22:41
算法
c++
数据结构
Codeforces Round 1012 (Div. 2)
CodeforcesRound1012(Div.2)A直接看一看s%(x+y)的余数即可,简单的数学推导#includeusing
namespaces
td;intmain(){ intt; cin>
gyc271828
·
2025-05-13 20:59
算法
c++
图论
Codeforces Round 1019 (Div. 2)(A-D)
CodeforcesA.CommonMultiple思路从a种选出几个数然后让这些数*y变成公倍数,要保证y各不相同,那么我们在选择数的时候没有相等的数即可,所以此问题的答案便是a种不同数的个数代码#includeusing
namespaces
td
.Vcoistnt
·
2025-05-13 20:28
算法
数据结构
c++
贪心算法
动态规划
The 2024 Sichuan Provincial Collegiate Programming Contest部分题解(L,H,E,B,I)
思路签到,模拟不多说了代码#includeusing
namespaces
td;#definevcoistntios_base::sync_with_stdio(false);cin.tie(NULL);
.Vcoistnt
·
2025-05-13 20:28
算法
数据结构
c++
贪心算法
动态规划
Codeforces Round 990 (Div. 2)(A-D)
,预处理一下,当总数能够到达构成的条件cnt++代码#includeusing
namespaces
td;#definevcoistntios_base::sync_with_stdio
.Vcoistnt
·
2025-05-13 20:58
算法
数据结构
c++
贪心算法
动态规划
C++ std::initializer_list 详解
其核心结构如下:
namespaces
td{templateclassinitializer_list{public:
阿沁QWQ
·
2025-05-13 16:37
list
windows
数据结构
c++
C++初阶:string类模拟实现
目录1.String.h2.Test.cpp1.String.h#include#include#includeusing
namespaces
Crazy_Rabbits239
·
2025-05-13 13:41
C/C++
c++
开发语言
【入门】A类多?B类多?
#includeusing
namespaces
td;intmain(){intzhi;scanf("%d",&zhi);intge_shu=0;for(intm=1;mcount_0){ge_shu++
摄殓永恒
·
2025-05-13 12:35
算法
c++
数据结构
CSP-J普及组第一轮考试阅读程写结果专项训练(一)
b:a#defineintlonglongusing
namespaces
td;intT,n,ans;inta[200010];intmaxn,minn;int`main(){cin>>T;while(T
Da_秀
·
2025-05-12 23:19
CCF
CSP题库训练
c++
算法
数据结构
笔记
动态规划
每日c/c++题 备战蓝桥杯(洛谷P1015 [NOIP 1999 普及组] 回文数)
转换为K进制表示后,通过以下操作使其变为回文数:将当前数与其逆序数相加重复操作直到得到回文数或超过30次操作输入格式:第一行输入进制K(2≤K≤16)第二行输入十进制数N(1#includeusing
namespaces
t
梁下轻语的秋缘
·
2025-05-12 22:38
c语言
c++
蓝桥杯
c++ string 构造函数 赋值操作 字符串拼接
s初始化string(conststring&str);//使用一个string对象初始化另一个string对象string(intn,charc);//使用n个字符c初始化#includeusing
namespaces
td
learn 11233466
·
2025-05-12 13:36
C++学习
【入门】数字走向V
#includeusing
namespaces
td;intmain(){intn;cin>>n;for(inti=n;i>=1;i--){for(intj=n*i;j>=n*i-n+1;j--)coutusing
namespaces
td
摄殓永恒
·
2025-05-12 12:01
算法
c++
数据结构
C++ string初始化、string赋值操作、string拼接操作
以下介绍了string的六种定义方式,还有很多,这个只是简单举例#includeusing
namespaces
td;intmain(){//1无参构造strings1;coutusing
namespaces
td
qq_43355454
·
2025-05-12 12:00
c++
开发语言
算法
PTA | 实验三 找出一批学生的最高分
例如:95代码:#include#includeusing
namespaces
td;intmain(){intn,max;cin>>n;m
InetGeek
·
2025-05-12 11:54
C++
C语言
c++
c语言
2024牛客暑期补题 4 I Friends
大家要是像我一样水平可以先去看看这几个知识图论看怎么构建set了解一下就行双指针最好去做几个题开始代码如下#includeusing
namespaces
td;constintmaxn=1e6+10;setma
XQ丶YTY
·
2025-05-12 06:17
算法
c++
图论
将C++数字类型转换成字符串
#include#include#includeusing
namespaces
td;intmain(){inta=55;doubleb=65.123;stringstr="";//头文件是sstreamostringstreamoss
阿峰的编程博客
·
2025-05-12 03:59
Visual
Studio
c++
开发语言
C++命名空间、内联与捕获
命名空间namespace最常见的命名空间是std,你一定非常熟悉,也就是:using
namespaces
td;命名空间的基本格式注意,要在头文件里面定义!
鸥梨菌Honevid
·
2025-05-12 02:51
C编程:返璞归真
c++
算法
开发语言
2C++图形: 【编程入门】数字走向III
(0using
namespaces
td;/*16111621271217223813182349141924510152025*/intmain(){intn;cin>>n;inta[n+1][n+1]
Alan呆-小呆老师
·
2025-05-12 01:18
c++信奥赛-06二维数组
算法
c++
动态规划
【入门】对角线I
#includeusing
namespaces
td;intmain(){intn;cin>>n;inta[n][n];for(inti=0;iusing
namespaces
td;intmain(){intn
摄殓永恒
·
2025-05-12 01:17
算法
c++
数据结构
【VS2019】报错:E0349没有与这些操作数匹配的运算符
#includeusing
namespaces
td;classPoint{private:int_x,_y;public:Point(intx=0,inty=0):_x(x),_y(y){}Point&
凌祈丶微光
·
2025-05-11 23:31
坑
C++编程实战--实用代码篇
#includeusing
namespaces
td;intmain(){intx;cin>>x;intq=x%10;inta=x/10%10;if(q==0){coutusing
namespaces
td
611 lx
·
2025-05-11 14:38
C++漫长的学习
C++玩乐
算法
c++
数据结构
代码大全
分支
第十三届蓝桥杯省赛B组 第六题(前缀和+双指针)
题目题意:给定n*m的矩阵,求有多少个子矩阵满足矩阵内和using
namespaces
td;constintN=502;typedeflonglongll;typedefpairPII;inta[N][
想出成果的acmer
·
2025-05-11 13:01
蓝桥杯
c++
ABC405A~E
#includeusing
namespaces
td;intr,x;intmain(){ios::sync_with_stdio(0);cin.tie(0);cin>>r>>x;if(x==1&&r>=1600&
shy_lihui
·
2025-05-11 11:46
题解
c++
并查集模版
#includeusing
namespaces
td;#defineintlonglong#defineendl"\n"#definePIIpair//#definexfirst//#defineysecond
飞天狗111
·
2025-05-11 04:56
算法
c++
数据结构
链表及其经典问题的总结
形成线性结构;3、查找结点时间复杂度为O(n),插入结点O(1),删除结点O(1);4、不适合快速的定位数据,适合动态的插入和删除数据的应用场景;几种经典的链表实现方法//传统实现法#includeusing
namespaces
td
BITORBITS
·
2025-05-11 03:55
数据结构与算法
链表
数据结构
【入门】数字走向I
(0using
namespaces
td;intmain(){intn;cin>>n;for(inti=1;i<=n*n;i++){cout<
摄殓永恒
·
2025-05-10 20:11
算法
c++
数据结构
滑动窗口-窗口中的最大/小值-单调队列
求窗口的最大值#include//滑动窗口最大值用单调队列q[],q存储候选最大值的下标//队列头是最大值的下标using
namespaces
td;constintN=100010;intnums[N]
吧啦吧啦吡叭卜
·
2025-05-10 20:11
c++
算法
c++
数据结构
从出生到18岁生日总天数(C++)
代码#includeusing
namespaces
td;//是否是闰年intisLeap(intyear){if((year%4==0&&year%100!
赵延超
·
2025-05-10 18:25
#
C++
PCL 投影点云
投影到XOY平面上#include#include#include#include#include#include#includeusing
namespaces
td;usingnamespacepcl;
AICVer
·
2025-05-10 16:15
PCL
PCL
数据结构实验7《基于Dijsktra算法的最短路径求解》
)》严蔚敏版【本文仅用于啥都看不懂还想交作业选手】加了一点输入异常的反馈基于基于Dijsktra算法的最短路径求解-简书改动(这是一个我终于明白并不需要一次性统一输出的故事)#includeusing
namespaces
td
基因沉默小RNA
·
2025-05-10 14:33
数据结构
c语言
算法
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
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
其他