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
信息学奥赛一本通1332 参考代码
输入467输出11223344152631参考代码#includeusingname
spaces
td;intmain(){intn1,n2,s;cin>>
小马斯不定期
·
2024-02-04 21:59
c++
算法
数据结构
[NOIP2001 提高组] 数的划分
##输入格式$n,k$($6usingname
spaces
td;inta,b,c;voiddfs(intx,inty,intz){if(z==b){if(y==a)c++;return
you0214
·
2024-02-04 21:56
深度优先
算法
图论
B2147 求 f(x,n)
##样例#1###样例输入#1```4.210```###样例输出#1```3.68```#includeusingname
spaces
td;intm
you0214
·
2024-02-04 21:26
算法
【2024.2.3练习】修剪灌木
我的代码#include#include#includeusingname
spaces
td;constintmax_n=10000;inttree[max_n];intmain(){
Run with the Wind
·
2024-02-04 21:37
练习日志
c++
学习
CSP-202305-2-矩阵运算
CSP-202305-2-矩阵运算:题目链接知识点一:申请矩阵1.动态分配//申请int**dynamicArray=newint*[rows];for(inti=0;iusingname
spaces
td
LOST P
·
2024-02-04 20:54
矩阵
线性代数
蓝桥杯第二章——查找与排序
关于递归的简单应用:1.求阶乘#includeusingname
spaces
td;intfun(intx){if(x==1)return1;x*=fun(x-1);returnx;}intmain(){
√21
·
2024-02-04 20:24
蓝桥杯
蓝桥杯
acm
新手
查找排序
递归
DS 串 KMP算法+子串循环问题
一KMP算法主串和模式串下标都是从0开始1.获得next数组的值voidget_next(stringt){intj=0,k=-1;next_[0]=-1;while(jusingname
spaces
td
'Karma
·
2024-02-04 20:31
数据结构
算法
c++
数据结构
DS树--二叉树高度 szu oj
,二叉树的层数是从1开始输入第一行输入一个整数t,表示有t个二叉树第二行起输入每个二叉树的先序遍历结果,空树用字符‘0’表示,连续输入t行输出每行输出一个二叉树的高度#includeusingname
spaces
td
Okabe Rintarō
·
2024-02-04 20:29
数据结构
算法
c++
数据结构
九、常用算法(算数、集合算法、distance算法、for_each反向)
1.常用算数生成算法#include#include#include#include//for_eachusingname
spaces
td;//accumulate累计voidtest01(){vectorv
木鱼_cc
·
2024-02-04 19:03
算法学习——华为机考题库8(HJ46 - HJ55)
个字符并输出数据范围:字符串长度满足1≤n≤1000,1≤k≤n输入描述:1.输入待截取的字符串2.输入一个正整数k,代表截取的长度输出描述:截取后的字符串示例代码解析#include#includeusingname
spaces
td
拉依达不拉胯
·
2024-02-04 19:36
华为机考题库
c语言
c++
华为
c
算法
秋招
互联网
算法学习——华为机考题库10(HJ64 - HJ67)
现在要实现通过上下键控制光标移动来浏览歌曲列表,控制逻辑如下:歌曲总数usingname
spaces
td;intmain(){intnum;strin
拉依达不拉胯
·
2024-02-04 19:36
华为机考题库
算法
学习
华为
c++
c
倒计时64天
1.B-关鸡_2024牛客寒假算法基础集训营1(nowcoder.com)#includeusingname
spaces
td;constintN=1e5+5;constintinf=0x3f3f3f3f
算法怎么那么难啊
·
2024-02-04 18:40
c++
倒计时65天
*#includeusingname
spaces
td;#defineintlonglongconstintN=3e3+5;constintinf=0x3f3f3f3f;inta[N][N],b[N][N
算法怎么那么难啊
·
2024-02-04 18:39
c++
数组表示线性表,并实现增删查操作
//用数组表示线性表//#include#include#includeusingname
spaces
td;#defineMAXSIZE100000///最大为五位数的地址typedefintElementType
Allen的光影天地
·
2024-02-04 18:45
Goat Latin
题目AsentenceSisgiven,composedofwordsseparatedby
spaces
.Eachwordconsistsoflowercaseanduppercaselettersonly.Wewouldliketoconvertthesentenceto"GoatLatin
BLUE_fdf9
·
2024-02-04 16:08
L1-044 稳赢
#includeusingname
spaces
td;intmain(){intn;cin>>n;strings;intt=1;while(1){cin>>s;if(s=="End")break;if(t
哇哈哈哈蛤
·
2024-02-04 15:31
c++
算法
L1-032 Left-pad
#includeusingname
spaces
td;intmain(){intn;chara;strings;cin>>n>>a;cin>>s;stringss;getline(cin,ss);s=s+
哇哈哈哈蛤
·
2024-02-04 15:00
算法
c++
数据结构
L1-039 古风排版
#includeusingname
spaces
td;intmain(){doublen;cin>>n;strings;getchar();getline(cin,s);doublelen=s.size(
哇哈哈哈蛤
·
2024-02-04 15:00
c++
算法
开发语言
L1-041 寻找250
#includeusingname
spaces
td;intmain(){intn=0;strings;while(cin>>s){n++;if(s=="250"){cout<<n
哇哈哈哈蛤
·
2024-02-04 15:00
c++
算法
数据结构
L1-009 N个数求和
#includeusingname
spaces
td;intmain(){intn;cin>>n;longlonga[1001],b[1001];charc;longlongzhengshu=0,fenzi
哇哈哈哈蛤
·
2024-02-04 15:30
算法
L1-019 谁先倒
#includeusingname
spaces
td;constintN=101;intmain(){inta,b,n;intahe=0,bhe=0;cin>>a>>b>>n;intahan[N],ahua
哇哈哈哈蛤
·
2024-02-04 15:30
算法
c++
数据结构
L1-011 A-B (20分)(测试点过不去原因)
#includeusingname
spaces
td;intmain(){stringa,b;getline(cin,a);getline(cin,b);for(inti=0;i
哇哈哈哈蛤
·
2024-02-04 15:29
算法
c++
数据结构
L1-025 正整数A+B(详解)
#includeusingname
spaces
td;intmain(){stringd;getline(cin,d);stringa,b,e;for(inti=0;i='0'&&a[i]='0'&&b[
哇哈哈哈蛤
·
2024-02-04 15:27
算法
洛谷p1832 a+b problem
一道完全背包的变形,方案累加题目链接ACcode#includeusingname
spaces
td;usingll=longlong;boolcheck(intx){//素数筛doublem=sqrt(
qustflypiggy
·
2024-02-04 14:50
背包专题训练
完全背包
背包dp
动态规划
洛谷 P1466 集合 Subset Sums
题目#include#includeusingname
spaces
td;typedeflonglongll;lln,m;lldp[10001000];intmain(){cin>>n;m=(
zailingzhe
·
2024-02-04 14:50
洛谷P1466 集合 Subset Sums
qwq#include#include#include#include#includeusingname
spaces
td;constintMAXN=40;intN,M;longlongf[800];intmain
weixin_33812433
·
2024-02-04 14:49
洛谷p1679神奇的四次方数
mmm是背包容量,单个数的四次方是物体体积,每个数的价值是111注意,这一题我们找的是最小的nnn,所以初始化所有为极大数,完全背包板子改成minminminACcode#includeusingname
spaces
td
qustflypiggy
·
2024-02-04 14:49
背包专题训练
背包dp
动态规划
完全背包
洛谷p1507 nasa的食物计划
01背包板子题,不同之处在于有两个背包要考虑,所以加一层循环就行了题目链接ACcode#includeusingname
spaces
td;constintM=2e4+9;intdp[M][M],c[M]
qustflypiggy
·
2024-02-04 14:19
背包专题训练
01背包
背包dp
动态规划
洛谷p1466集合
01背包的一道变形题目链接代码中已表明注释ACcode#includeusingname
spaces
td;usingll=longlong;constintM=1e4+9;lldp[M];intmain
qustflypiggy
·
2024-02-04 14:17
01背包
动态规划
背包问题
背包dp
priority_queue实现错误总结
错误代码展示#pragmaonce#include#includeusingname
spaces
td;namespacebit{template,classCom=less>classpriority_queue
桐人,奥龙
·
2024-02-04 14:14
c++
算法
开发语言
如何把文件内的数据逐行遍历并选择其中部分需要数据进行输出到新文件
文件里面的其中几行数据放入到excle表格里,因为刚入门,会的不多,只能简单实现一点功能把.gen文件变成.txt文件,具体代码如下:希望大家指点一二:#include#include#includeusingname
spaces
td
从删库 到跑路
·
2024-02-04 14:55
算法
c++
selenium-模拟键盘事件(回车、删除、刷新等)
sendkeys可以模拟键盘输入,也可以用来模拟键盘上的按键,甚至是组合键键值解释send_keys(Keys.BACK_SPACE)删除键Back
Spaces
end_keys(Keys.SPACE)空格键
忘了呼吸的那只猫
·
2024-02-04 14:49
C++(迭代法求平方根)
代码如下:1#include2usingname
spaces
td;3classsquare{4public:5square(floatx,floaty){6this->x=x;7this->y=y;8}
钟居祥瑞
·
2024-02-04 13:22
c++
开发语言
C++指针
分析下面的重载函数#includeusingname
spaces
td;voidpfun(char*str){cout()unique_ptr包装一个原始指针,并负责其生命周期。
钟居祥瑞
·
2024-02-04 13:50
C/C++学习
c++
开发语言
计算机软件能力认证考试CCF-202312-1 仓库规划
#自己跑的测试没问题,不知道为啥就是不能满分原理比较绕,就是让数组中一行不断地与其他行进行比较,最终得到各自的索引#includeusingname
spaces
td;intmain(){intn;intm
cynicism??
·
2024-02-04 11:55
C++练手
算法
c++
开发语言
2017年苏州大学837复试机试C/C++
代码#includeusingname
spaces
td;intmain(){intArr[20]={0};//Arr[0]=0
ORI2333
·
2024-02-04 11:41
C++
c语言
c++
算法
考研
苏州大学
第二章 数据结构(一)(数组模拟链表、队列,栈以及kmp)
一、用数组表示链表1、单链表基础插入和删除操作#include//803区间合并usingname
spaces
td;constintN=1e4+10;//head表示头结点的下标//e[]存结点的值//
一只程序媛li
·
2024-02-04 09:04
蓝桥准备
数据结构
第二章数据结构(三)(哈希表、stl)
一、哈希表1、拉链法(加一个单链表)#include//哈希//模数一般取质数,距离2的整数次幂尽量远//拉链法有多个槽,每个槽连接一个单链表usingname
spaces
td;constintN=1e5
一只程序媛li
·
2024-02-04 09:04
蓝桥准备
数据结构
散列表
哈希算法
图(数据结构期末复习3)
图的分类:有向图,无向图连通图,非连通图连通图分为强连通(有向并且形成一个环)和弱连通(有向并且连成一串但是不是一个环)图的存储用邻接矩阵存储有向图或者无向图#includeusingname
spaces
td
一只程序媛li
·
2024-02-04 09:34
数据结构复习
数据结构
树(数据结构期末复习8)
二叉树和二叉搜索树的基础操作#includeusingname
spaces
td;#defineOK1#defineERROR-1#defineOVERFLOW-2typedefintStatus;typedefintBElemtype
一只程序媛li
·
2024-02-04 09:34
数据结构复习
数据结构
LeetCode第34题之Search for a Range
C++代码:#include#includeusingname
spaces
td;classSolution{public:vectorsearchRange(vector&nums,inttarget)
二叉树
·
2024-02-04 09:19
LeetCode算法
leetcode
C++自创棋类小游戏
#include#include#include#includeusingname
spaces
td;#defineForij(x)for(inti=1;iN||yy>N)break;if(m[xx][yy
喷火龙廖
·
2024-02-04 09:13
C++小游戏
c++
stm32
开发语言
2022广西师范大学暑期训练赛 E-寄CD?(ST表+二分)
输入1521234512输出111ST表+二分做法#includeusingname
spaces
td;typedeflonglongLL;typedefpairPII;constintN=200
Vijurria
·
2024-02-04 09:11
数论
算法
c++
Educational Codeforces Round 122 (Rated for Div. 2) ABC
#include#include#include#include#include#includeusingname
spaces
td;intmain(){cin.tie(0);cout
Vijurria
·
2024-02-04 09:41
c++
c++“不允许使用不完整的类型“
示例 先贴上一段简单的c++类构造代码:includeusingname
spaces
td;classAddress;//提前声明类classAddress//声明类{private:constchar
师范大学生
·
2024-02-04 08:18
C++
c++
指针
编程语言
备战蓝桥杯---搜索(应用入门)
下面是AC代码:#includeusingname
spaces
td;#d
cocoack
·
2024-02-04 08:40
蓝桥杯
深度优先
算法
c++
设计模式第四天|适配器模式 6. 扩展坞
#include#includeusingname
spaces
td;classUSB{public:virtualvoidcharge()=0;};classTypeC{public:virtualvoidcharge
啊就赵得柱
·
2024-02-04 08:59
设计模式
适配器模式
android
C++设计模式-里氏替换原则
e.g.1不符合里氏替换原则#includeusingname
spaces
td;classMap{};classHashMap:publicMap{};class
vczxh
·
2024-02-04 08:14
c++
c++
设计模式
里氏替换原则
C++:冒泡排序,代码实现
#includeusingname
spaces
td;intmain(){intarr[]={10,45,2,65,5,8,4,82,11,51};intnum=sizeof(arr)/sizeof(arr
snow爱
·
2024-02-04 07:33
c++
算法
数据结构
c++:打印9*9乘法表
#includeusingname
spaces
td;intmain(){for(inti=1;i<=9;i++){for(intj=1;j<=i;j++){cout<<j<
snow爱
·
2024-02-04 07:02
c++
算法
开发语言
上一页
49
50
51
52
53
54
55
56
下一页
按字母分类:
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
其他