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
Namespace
网易笔试——算法笔试真题
每个人的难度为各相邻元素之和,求两个人的最小难度和5.给定一堆点,求画两条互相垂直的线,最多能覆盖多少点1.题意:在s串中连续的子串有多少个题解:枚举#include#include#includeusing
namespace
std
fpga和matlab
·
2025-05-17 23:31
★求职2:大厂笔试面试总结
数据结构
网易面试
网易笔试
编程日志5.10
二叉搜索树的基础代码#includeusing
namespace
std;//二叉搜索树节点定义templatestructTreeNode{Tval;//一个类型为T的成员变量val,用于存储树节点的值
牛牛程序员成长日记
·
2025-05-17 20:09
c++
算法
开发语言
AtCoder 第405场初级竞赛 A~E题解
【难度】GESP一级【代码参考】#includeusing
namespace
std;intmain(){intr,x;cin>>r>>x;if(x==1){if(r>=1
是帅帅的少年
·
2025-05-17 16:36
青少年编程比赛题解
算法
c++
AtCoder
数据结构
C++[错误] no match for ‘operator<<‘ (operand types are ‘std::basic_ostream<char>‘ and ‘void‘)
C++[错误]使用Markdown记录错误插入代码片使用Markdown记录错误错误名称:nomatchfor‘operatorusing
namespace
std;#includeclassSClass
遥遥领先zzl
·
2025-05-17 09:14
c++
开发语言
密码学习题--仿射变换cpp代码实现
密码学习题–仿射变换cpp代码实现#includeusing
namespace
std;intmod(intnum,intm){while(num<0)num+=m;inttmp=num/m;returnnum-tmp
lllzy_vx
·
2025-05-17 05:50
加解密的代码实现
学习ing
密码学
【cf每日一题(0410-0417)】
的用法新的输入方式题解:本题利用贪心的思路:将更接近的两个数放在一起这个代码是最开始的源码,存在一些问题,因为没有看数据范围,导致wa,蓝桥杯也没看到白白丢了5分,一定要注意#includeusing
namespace
std
mingyu19
·
2025-05-16 23:43
cf练习
c++
D. Distinct Split 【CF每日一题 / 1000】
https://codeforces.com/problemset/problem/1791/D#includeusing
namespace
std;constintN=1e5*4;intt,cnt1[N
幽殇默
·
2025-05-16 23:43
CF每日一题
算法
[二叉树]根据中序后序排列求先序排列
题目链接中序+后序->先序#includeusing
namespace
std;#defineendl'\n'usingll=longlong;usingpii=pair;usingar2=array;usingar3
Joe_Wang5
·
2025-05-16 17:59
算法
剑指Offer32.I 从上到下打印二叉树 C++
3,9,20,null,null,15,7],返回:[3,9,20,15,7]2、VS2019上运行使用队列+BFS(广度优先搜索);按层遍历#include#include#includeusing
namespace
std
猴子不是唯一的动物
·
2025-05-16 16:53
剑指Offer刷题
c++
深度优先
算法
力扣
信息学奥赛一本通(c++)题号:1018
输入样例(无)输出样例(无)代码#includeusing
namespace
std;intmain(){boola;charb;cout<
K1ngston
·
2025-05-16 16:52
c++
三角形分类(C++)
#includeusing
namespace
std;inta,b,c;intlen[4]={0};intmain(){cin>>a>>b>>c;len[1]=a,len[2]=b,len[3]=c;sort
pencil1024
·
2025-05-16 16:49
c++
算法
数据结构
信息学奥赛一本通(1018:其他数据类型存储空间大小)
【输入样例】(无)【输出样例】(无)【参考代码】#includeusing
namespace
std;
橙子教师
·
2025-05-16 16:18
信奥一本通(顺序结构程序设计)
信息学奥赛一本通(C++版)第1018题目:其他数据类型存储空间大小 答案
语言:G++14代码:#include#include#include#include#include#include#include#include#definenullNULLusing
namespace
std
乐观的披萨
·
2025-05-16 16:17
信息学奥赛一本通(C++版)
c++
算法
开发语言
6.27 C++初级 作业
#includeusing
namespace
std;
namespace
Myspace{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
namespace
std
myl4805
·
2025-05-16 14:36
游戏
python 如何遍历 postgresql 所有的用户表 ?
要遍历PostgreSQL中的所有用户表,你可以通过查询系统目录表pg_class结合pg_
namespace
来实现。
belldeep
·
2025-05-16 11:15
python
PostgreSQL
python
postgresql
数据库
求大家投下我们美团吧,白菜起包40,sp普遍50可是没人投
状态码查询方法华为客户经理面试—二面三面贫穷给我们带来的或许不是遗憾,而是一次又一次的“不得不”暑期实习大结局,双非太难了题解|#找最小数##include#includeusi题解|#判断身材状态##includeusing
namespace
std
2301_78234743
·
2025-05-16 10:09
java
编程日志4.18
顺序表题目:1.Problem-2006固定模板:#includeusing
namespace
std;#defineeleTypeint//定义eleType为整型//#defineeleTypefloat
牛牛程序员成长日记
·
2025-05-16 07:41
算法
数据结构
如何在VSCode中配置php插件?
可选插件:PHP
Namespace
Resolver(自动管理命名空间)PHPDocBlocker(快速生成注释)2.配
深山技术宅
·
2025-05-16 00:56
PHP
经验
VS插件
vscode
php
ide
石子归并 CSU - 1592 (区间dp,线性dp)
Input第一行包含一个整数T(T#include#include#include#include#defineLLlonglong#defineINF0x3f3f3f3fusing
namespace
std
czdb
·
2025-05-16 00:54
dp
ACM
dp
栈与乘积 / 栈
题目代码#includeusing
namespace
std;usingll=longlong;constintN=1e5+10;structnode{intw,pos;};nodestk[N];intp
Kent_J_Truman
·
2025-05-15 18:08
蓝桥杯
初识C++:开启C++之旅
目录1.C++的第一个程序2.namesapce命名空间域2.1
namespace
的意义2.2.2
namespace
的定义2.3命名空间的使用3.C++输入/输出4.缺省参数5.函数重载6.引用6.1引用的特性
我也想睡觉 .
·
2025-05-15 12:24
c++
开发语言
蓝桥杯13届国赛 2022
#includeusing
namespace
std;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
namespace
s
苕皮蓝牙土豆
·
2025-05-15 03:28
C++
STL容器
c++
开发语言
【数据结构入门训练DAY-30】数的划分
输入格式两个整数n,k(6using
namespace
std;#defineMax200intsum
不会计算机的捞地
·
2025-05-15 03:58
数据结构入门训练
数据结构
算法
深度优先
编程日志5.5
树的结构代码#includeusing
namespace
std;//由于树的每个结点可能有一些孩子结点,这些孩子结点的数量不确定,所以可以用一个链表来把所有的孩子结点给串起来//链表结点定义//这段代码定义了一个结构体
牛牛程序员成长日记
·
2025-05-15 00:08
c++
数据结构
算法
3d游戏引擎的math矩阵实现
1.Math.h#pragmaonce#include"CommonHeaders.h"#include"MathTypes.h"#include"PrimitiveTypes.h"
namespace
primal
Magnum Lehar
·
2025-05-14 21:13
游戏引擎
矩阵
线性代数
牛客周赛 Round 92-题解
牛客周赛Round92-题解A-小红的签到题code#include#includeusing
namespace
std;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
namespace
std
hesorchen
·
2025-05-14 14:59
#
BFS
题解
easyx--上半部分
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusing
namespace
std;//只能在c++上运行(文件为.cpp)#include/
^O^凡人多烦事
·
2025-05-14 10:36
c++
easyx
c++
【OpenCV】C++实现视频播放器 #1 暂停和播放
#include#includeusing
namespace
cv;using
namespace
std;声明全局变量VideoCapturecap;//读取视频Matframe;//储存每一帧主函数框架如下
migeee
·
2025-05-14 10:04
数字图像/视频处理
opencv
c++
音视频
【C++】:STL详解 —— 红黑树封装map和set
目录红黑树的源代码正向迭代器的代码反向迭代器的代码set的模拟实现map的模拟实现红黑树的源代码#pragmaonce#includeusing
namespace
std;//set->key//map-
-元清-
·
2025-05-14 10:31
重制C++版
c++
java
开发语言
c语言
windows
算法
数据结构
欧拉筛代码讲解
实现代码#includeusing
namespace
std;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
namespace
std;
namespace
rain{classstring{public:typedefchar*iterator
晴天下小雨o
·
2025-05-14 01:01
c++
算法
C#之Mutex锁与Winform启动文件Program.cs
进程之间的互锁:Mutex锁作用1:只让启动一个程序,不可重复启动
namespace
MjVision{classProgram:System.Windows.Application{publicstaticMutexmutex
*Major*-莙工科技有限公司
·
2025-05-14 00:28
c#
开发语言
牛客周赛 Round 92
目录A-小红的签到题代码B-小红的模拟代码C-小红的方神题代码D-小红的数学题代码无注释版有注释版E-小红的ds题代码无注释版有注释版A-小红的签到题代码#includeusing
namespace
std
三流搬砖艺术家
·
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
namespace
std
高达一号
·
2025-05-13 22:17
C++
C
C++
C
wcout
2025.5.13 单调栈
所以时间复杂度是o(n)左边小版本:#includeusing
namespace
std;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
namespace
std;intmain(){ intt; cin>
gyc271828
·
2025-05-13 20:59
算法
c++
图论
Codeforces Round 1019 (Div. 2)(A-D)
CodeforcesA.CommonMultiple思路从a种选出几个数然后让这些数*y变成公倍数,要保证y各不相同,那么我们在选择数的时候没有相等的数即可,所以此问题的答案便是a种不同数的个数代码#includeusing
namespace
std
.Vcoistnt
·
2025-05-13 20:28
算法
数据结构
c++
贪心算法
动态规划
The 2024 Sichuan Provincial Collegiate Programming Contest部分题解(L,H,E,B,I)
思路签到,模拟不多说了代码#includeusing
namespace
std;#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
namespace
std;#definevcoistntios_base::sync_with_stdio
.Vcoistnt
·
2025-05-13 20:58
算法
数据结构
c++
贪心算法
动态规划
数据库帮助类 SqlServerHelp
2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Data;6usingSystem.Data.SqlClient;78
namespace
WindowsFormsApplication1
weixin_30918415
·
2025-05-13 19:27
数据库
C++ std::initializer_list 详解
其核心结构如下:
namespace
std{templateclassinitializer_list{public:
阿沁QWQ
·
2025-05-13 16:37
list
windows
数据结构
c++
C++初阶:string类模拟实现
目录1.String.h2.Test.cpp1.String.h#include#include#includeusing
namespace
s
Crazy_Rabbits239
·
2025-05-13 13:41
C/C++
c++
开发语言
【入门】A类多?B类多?
#includeusing
namespace
std;intmain(){intzhi;scanf("%d",&zhi);intge_shu=0;for(intm=1;mcount_0){ge_shu++
摄殓永恒
·
2025-05-13 12:35
算法
c++
数据结构
3d游戏引擎的Utilities模块实现
1.Vector.h#pragmaonce#include"CommonHeaders.h"
namespace
primal::utl{templateclassvector{public:vector(
Magnum Lehar
·
2025-05-13 09:15
游戏引擎
算法
c++
levelDB之基础数据结构-Slice
定义与实现
namespace
leveldb{classLEVELDB_EXPORTSlice{public://Createanemptyslice.Slice():data_(""),size_(0)
向死而生__
·
2025-05-13 03:09
数据结构
数据库
CSP-J普及组第一轮考试阅读程写结果专项训练(一)
b:a#defineintlonglongusing
namespace
std;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
namespace
st
梁下轻语的秋缘
·
2025-05-12 22:38
c语言
c++
蓝桥杯
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
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
其他