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
c++(斗罗大陆2)
我把魂力等级更新到了31级#include#include#include#include#include#include#includeusing
namespace
std;intqs=10;intxthl
今晚打老虎
·
2025-03-31 05:35
c++
开发语言
String类的模拟实现
1:需要模拟实现的string类函数#pragmaonce#include#include#includeusing
namespace
std;
namespace
bit{classstring{friendostream
思麟呀
·
2025-03-31 03:17
c++
算法
开发语言
数组推导 ccf-csp 2021-9-1
代码#includeusing
namespace
std;intmain(){intn;cin>>n;intb[101]={0};intsum=0;//最大值intdum=0;//最小值for
ahahahahaha2333
·
2025-03-30 22:48
ccf-csp(算法)
算法
c++
数据结构
相似度计算 ccf-csp 2024-2-2
#includeusing
namespace
std;intmain(){//定义两个变量n和m,分别用于存储两篇文章的单词个数intn,m;//从标准输入读取n和m的值cin>>n>>m;//定义三个map
ahahahahaha2333
·
2025-03-30 22:46
ccf-csp(算法)
算法
c++
数据结构
洛谷P1001题解
#includeusing
namespace
std;inta,b;intmain(){scanf("%d%d",&a,&b);printf("%d",a+b);return0;}
一名开心的中学生
·
2025-03-30 21:09
洛谷
c++
c++
算法
bit计算机考研复试机试模拟题
例如示例一:输入c4(‘z’字型的高度和宽度都是n)输出如下:示例二:输入:Y7输出如下:代码:#includeusing
namespace
std;intmain(){charch;cin>>ch;intn
劳尔的狙击镜
·
2025-03-30 19:57
北京理工大学计算机学院历年真题
考研
北理工考研复试机试
bit计算机复试上机题目
北理工计算机考研机试历年真题
糖果--状压dp--用二进制求满足种类的最小包数
用二进制求满足种类的最小包数集合式(表示每一个元素是否在集合中)1.用using
namespace
std;#defineN100011typedeflonglongll;typedefpairPII;intt
泛舟起晶浪
·
2025-03-30 19:56
算法
数据结构
海底高铁--差分
明显用差分·来统计坐每一段的次数然后忘开ll喜提70,(;′д`)ゞ#includeusing
namespace
std;typedeflonglongll;typedefpairPII;intn,m;llan
泛舟起晶浪
·
2025-03-30 19:56
算法
c++
数据结构
【第一次团体赛赛后部分题解】
目录可以自动生成,如何生成可参考右边的帮助文档第一次团体赛赛后部分题解A欢迎来到算法世界B更待西湖彻底干此间应有再生缘D我上面有人儿G三人成行J娇の礼帽K我来组成头部总结A欢迎来到算法世界#includeusing
namespace
std
不会敲代码就打代码
·
2025-03-30 18:51
算法
数据结构
1.0拼正方形
让我们求用这些方块可以拼出的最大的正方形的边长是多少那我们可以先求一个最大的面积,因为最后拼成的是正方形,所以我们直接对这个最大的面积开平方即可,得到的数字就是这个正方形在最大情况下的边长代码层面#includeusing
namespace
std
IV_Y
·
2025-03-30 14:52
算法
蓝桥杯
c#客户端 通过用户名密码访问服务器文件,C#通过用户名与密码访问共享目录
usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Runtime.InteropServices;
namespace
FileTools
weixin_39823269
·
2025-03-30 14:51
c#客户端
通过用户名密码访问服务器文件
C#使用用户名密码连接共享文件夹
C#使用用户名密码连接共享文件夹创建连接usingSystem.ComponentModel;usingSystem.Runtime.InteropServices;
namespace
Tests.ConsoleApp
Winemonk
·
2025-03-30 14:17
.NET
c#
windows
第十四届蓝桥杯大赛软件赛国赛C/C++ 大学 B 组(部分题解)
代码:2双子数思路:代码:3班级活动思路:代码:4合并数列思路:代码:5数三角思路:代码:7AB路线思路:代码:8抓娃娃思路:代码:1子2023思路:比较基础的线性dp代码:#includeusing
namespace
std
JIAN LAI
·
2025-03-30 11:57
蓝桥杯
蓝桥杯
c语言
c++
2023天梯赛
L1-1#include#include#include#include#include#definexfirst#defineysecondusing
namespace
std;usingLL=longlong
its_a_win
·
2025-03-30 09:18
算法
c++
洛谷 P1149 [NOIP2008 提高组] 火柴棒等式(指数型枚举+预处理)
题目链接:P1149[NOIP2008提高组]火柴棒等式-洛谷|计算机科学教育新生态(luogu.com.cn)#include#includeusing
namespace
std;constintN=10010
its_a_win
·
2025-03-30 09:48
算法
深度优先
图论
AtCoder abc233_c题解
defineendl"\n"#definerep(i,m,n)for(inti=(m);i=(n);--i)#defineIOSios::sync_with_stdio(0);cin.tie(0);using
namespace
std
ggbooo
·
2025-03-30 09:17
深搜dfs
AtCoder
c语言
深度优先
算法
数据结构与算法-链表(练习二)
链表刷题练习删除链表的倒数第n个元素刷题练习删除链表的倒数第n个元素输入链表为:5->4->3->2->1,3输出链表为:5->4->2->1#include#include#include#includeusing
namespace
std
LoveXming
·
2025-03-30 08:40
链表
数据结构
算法
蓝桥杯 双子数
本题的结果为一个整数在提交答案时只填写该整数填写多余内容将无法得分c++代码#includeusing
namespace
std;typedef__int128_tll;v
wuqingshun314159
·
2025-03-29 20:25
十四届蓝桥杯C/C++B组
蓝桥杯
蓝桥杯
职场和发展
算法
数据结构
c++
QT计算器开发
1.项目架构1.图形化界面2.widget.h#ifndefWIDGET_H#defineWIDGET_H#include#include#includeQT_BEGIN_
NAMESPACE
namespace
Ui
入世浮尘
·
2025-03-29 18:10
QT
qt
开发语言
c++
缴纳过路费--并查集+优先队列
利用并查集建立联通块,然后>=l的时候统计城市对的个数,>r退出https://www.luogu.com.cn/problem/P11005#includeusing
namespace
std;#defineN100011typedeflonglongll
泛舟起晶浪
·
2025-03-29 15:49
算法
C++中获取文件名的后缀
在C++中获取文件名的后缀可以通过以下两种方法实现:方法一:使用C++17的std::filesystem库(推荐)#include#include
namespace
fs=std::filesystem
一只小小汤圆
·
2025-03-29 12:28
c++
c++
开发语言
第十一届蓝桥杯模拟赛——互质个数
答案:7200题解:#includeusing
namespace
std;intgcd(inta,intb){returnb?gcd(b,a%b):a;}intmain(){intans=0
业余算法学徒
·
2025-03-29 11:20
蓝桥杯历届试题
蓝桥杯省模拟赛 阶乘求值
样例输入3样例输出6样例输入7样例输出5040#includeusing
namespace
std;longlongsum=1;constintN=1000000007;intn;intmain(){i
咚咚轩
·
2025-03-29 10:14
蓝桥杯
猫狗收容所
没什么思维难度,主要是考察C++中队列和结构体的使用#include#include#include#include#include#include#includeusing
namespace
std;mapfindIndex
Phoebe鑫
·
2025-03-29 03:24
c++
算法
开发语言
dfs算法
#include#include//#include#include#include#include#include#include#include#include#includeusing
namespace
std
Phoebe鑫
·
2025-03-29 03:24
图论
深度优先
算法
图论
算法250327题目
输入输入包含多组数据,每组数据占一行,由两个整数A和B组成(-109#include#includecharstr1[15];charstr2[15];using
namespace
std;intmain
ohnoooo9
·
2025-03-29 02:47
算法
c++
数据结构
P3406 海底高铁(差分)
题目描述分析差分求出每段路程的经过次数,在根据a,b,c求出哪种方案便宜for(inti=1;i#include#include#include#include#includeusing
namespace
std
_qz
·
2025-03-29 02:46
c++算法
差分应用(海底高铁)
第i段铁路连接了城市i和城市i+1(1≤i#includeusing
namespace
std;#defineN10000000#definelllonglongllp[N]={0},n,m;longlongsum
老菜鸟·
·
2025-03-29 02:16
蓝桥杯
c++
管道--二分答案+check
#includeusing
namespace
std;#defineN100011typedeflonglongll;typedefpairPII;intn,l;structedge{intl,s;}a[
泛舟起晶浪
·
2025-03-29 02:45
算法
数据结构
买瓜--dfs‘剪枝
1.后缀和剪枝2.排序大数在前剪枝3.枚举3种情况#includeusing
namespace
std;constintN=2005;typedeflonglongll;constdoubleMAX=1e10
泛舟起晶浪
·
2025-03-29 02:15
深度优先
剪枝
算法
洛谷p1309回顾—归并排序
#includeusing
namespace
std;typedeflonglongll;intn,r,q;inti,j;structnode{ intgrade; intnum;};//结构体,用来储存分数和编号
泛舟起晶浪
·
2025-03-29 02:15
笔记
ECNU计科复试机试(2021)
C.子序列#include#include#include#includeusing
namespace
std;#defineDEBUG0vectorNum;vectordp;longlongSum=0;
等一个好昵称
·
2025-03-29 01:39
ECNU复试机试
动态规划
c++
算法
科软25机试
题目:2025科软复试上机题(回忆版)题解_哔哩哔哩_bilibili1.字符串反转#includeusing
namespace
std;voidsolve(string&a,intCurN){if(!
一只鱼^_
·
2025-03-29 01:37
数据结构考研
算法
面试
数据结构
c++
排序算法
leetcode
开发语言
蓝桥杯备考:DFS之数独
我们可以开个col[N][N]表示某一列出现过的数字row[N][N]表示某一行出现的数字,st[N][N][N]表示每个3*3的子矩阵里出现的数字话说到这里,我们已经可以实现代码了#includeusing
namespace
std
无敌大饺子 dot
·
2025-03-29 00:59
蓝桥杯
深度优先
职场和发展
前缀和 ( C++ )
#include#includeusing
namespace
std;voidupData(inta[],intprefix[],intnum,intindex,intn){intold=a[index]
卷纸要用清风的
·
2025-03-28 19:22
C++
c#串口缓存字节数_C# SerialPort串口通信发送接收,处理接收数据完整
usingSystem.Collections.Generic;usingSystem.IO.Ports;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;
namespace
SerialPortCom
含老司开挖掘机
·
2025-03-28 16:06
c#串口缓存字节数
蓝桥杯备考:模拟算法之字符串展开
P1098[NOIP2007提高组]字符串的展开-洛谷|计算机科学教育新生态#include#include#includeusing
namespace
std;intp1,p2,p3;strings,ret
无敌大饺子 dot
·
2025-03-28 14:18
算法
[蓝桥杯 2023 省 A] 异或和之和
暴力代码:#include#defineintlonglongusing
namespace
std;constintN=1e5+20;intn;intarr[N],ls[N];//前缀异或和数组lssignedmain
好好学习^按时吃饭
·
2025-03-28 14:48
蓝桥杯
矩阵列平移(pta)
也就是第2列移动1个第4列移动2个第6列移动3个以此类推#includeusing
namespace
std;inta[110][110],n,m,p,k,z[110];intmain(){inti,j;
i榴莲臭臭配香茶
·
2025-03-28 12:08
思维
c++
520 钻石争霸赛 7-6 矩阵列平移(循环)
对任一给定的正整数kusing
namespace
std;intnum[105][105];intmain(){intn,k,x;cin>>n>>k>>x;for(inti=1;ik)kk=kk-k;for
江南路漫
·
2025-03-28 12:06
PTA
PTA矩阵列平移
对任一给定的正整数ktypedeflonglongll;using
namespace
std;inta[110][110];intmain(){intn,k,x;cin>>n>>k>>x;for(inti
深巷wls
·
2025-03-28 12:06
数组字符串
C++ —— 链表
C++——简单链表结构体如何解决链表结构体先看一段有关结构体的代码#include#includeusing
namespace
std;structst_t{inta;int*p;};intmain(){
奶香臭豆腐
·
2025-03-28 12:01
c++
链表
开发语言
C++重载操作符
文章目录操作符重载用于自动类型转换的构造函数重载一元操作符重载>>和using
namespace
std;classExample{public:friendExampleoperator+(constExample
hhhcbw
·
2025-03-28 11:58
C++
#
C++基础语法
c++
开发语言
C++重载操作符详解
在C++中有很多的基本运算符,如+,-,*,/,==,>,using
namespace
std;classperson{public:intage;booloperator==(constperson&ps
虽迟但到灬
·
2025-03-28 11:58
C++
c++
C++重载比较操作符
例1,#includeusing
namespace
std;classMyClass{private:intvalue;public:MyClass(intv):value(v){}//重载==运算符booloperator
bcbobo21cn
·
2025-03-28 10:24
VC++
c++
开发语言
运算符重载
比较操作符重载
C++:友元
1.友元函数#includeusing
namespace
std;classAA{private:inta;public:AA(){a=100;}public:voidShow(BB&rb){rb.b;}
学习使我变快乐
·
2025-03-28 10:21
c++
开发语言
青少年编程
最大异或对 The XOR Largest Pair
代码:#includeusing
namespace
std;constintN=100010;intn;intarr[N];intch[N*31][2],idx;//idx给树上每个节点一个编号voidtr
好好学习^按时吃饭
·
2025-03-28 05:44
算法
弗洛伊德模板
#include#include#includeusing
namespace
std;typedeflonglongll;constintN=500;//最大节点数constllinf=0x3f3f3f3f3f3f3f3f
qystca
·
2025-03-28 02:54
图论
蓝桥杯备考:八皇后问题
八皇后的意思是,每行只能有一个,每个对角线只能有一个,每一列只能有一个,我们可以dfs遍历每种情况,每行填一个,通过对角线和列的限制来进行剪枝话不多说,我们来实现一下代码#include#includeusing
namespace
std
无敌大饺子 dot
·
2025-03-28 00:36
蓝桥杯
职场和发展
题目 2693: 蓝桥杯2022年第十三届决赛真题-卡牌 C++
#include#includeusing
namespace
std;longlongintm,ans=0;//注意m的范围比较大,如果只是定义int的话会导师运行错误inta[210000],b[210000
IC 见路不走
·
2025-03-27 22:26
蓝桥杯
c++
算法
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
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
其他