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
牛客周赛31(A-E)
1.A签到题,没啥好说的#includeusingname
spaces
td;#defineintlonglongsignedmain(){ios::sync_with_stdio(false);cin.tie
像风一样_
·
2024-02-05 23:30
动态规划
c++
算法
#Z0458. 树的中心2
题目代码#includeusingname
spaces
td;structff{intz,len;};vectorvec[300001];intn,u,v,w,dp[300001][2],ans=1e9;
伟大的拜线段树jjh
·
2024-02-05 23:44
算法
信息奥赛一本通 1062:最高的分数
【输入】输入两行,第一行为整数n(1≤n#includeusingname
spaces
td;doublec;inta,b[101],d=0;intmain(){c
未命名999
·
2024-02-05 23:53
简单的Udp服务器
1.1UdpServer.hpp1.2UdpClient.cc1.3main.cc1.4makefile1.5log.hpp简单的UDP网络程序1.1UdpServer.hpp#pragmaonce#includeusingname
spaces
td
Gay~
·
2024-02-05 22:47
Linux网络编程
udp
服务器
单片机
c++
linux
centos
网络协议
牛客周赛Round31-小白感悟
签到题很简单c++版#includeusingname
spaces
td;intmain(){strings;cin>>s;cout>n;for(lli=2;i*i1)t++;coutusingname
spaces
fchampion
·
2024-02-05 22:43
牛客赛事
c++
数据结构:孩子兄弟表示法
#includeusingname
spaces
td;//定义树的结构体typedefstructCSNode{chardata;//结点值structCSNode*firstchild,*nextsibling
m0_64076371
·
2024-02-05 22:35
数据结构
图论
算法
二维差分 怎么构建差分数组 二维前缀和 AcWing 798. 差分矩阵
#includeusingname
spaces
td;constintN=1010;inta[N][N],b[N][N],s[N][N];voidinsert(intx1,inty1,intx2,inty2
三冬四夏会不会有点漫长
·
2024-02-05 22:56
算法竞赛
#
acwing算法基础
矩阵
算法
数据结构
二维前缀和公式 AcWing 796. 子矩阵的和
#includeusingname
spaces
td;constintN=1010;inta[N][N],s[N][N];intmain(){intn,m,q;cin>>n>>m>>q;for(inti=
三冬四夏会不会有点漫长
·
2024-02-05 22:54
算法竞赛
#
acwing算法基础
矩阵
算法
线性代数
C++类与对象的简单应用【日期类的简单实现】
在咱们刚接触C++,写一个日期类进行练习,实现从能比较多,如计算日期差,设置日期,输出日期…下面我会展示一个简单的日期类声明#include#includeusingname
spaces
td;classDate
Q741_147
·
2024-02-05 22:23
c++
开发语言
JVM启动参数配置详解
启动参数说明2.1基本参数2.2G1相关参数2.3辅助信息1.JDK8的JVM启动参数默认配置-Xms2g-Xmx2g(按不同容器,4G及以下建议为50%,6G以上,建议设置为70%)-XX:Meta
spaceS
ize
暮晓引流软件
·
2024-02-05 22:20
java
jvm
java
开发语言
运维
#Z2322. 买保险
2.暴力代码#include#defineintlonglongusingname
spaces
td;intn,m,fa,x,y,vis[1000001],ans;vectorvec[1000001];voiddfs
伟大的拜线段树jjh
·
2024-02-05 22:42
算法
图论
深度优先
LeetCode 109. 有序链表转换二叉搜索树 题解+测试 C/C++
主要思路构造平衡的二叉搜索树:首先使用快慢指针法找到中位数,作为根节点,然后递归构造左子树与右子树#include#includeusingname
spaces
td;#includestructListNode
【止心】
·
2024-02-05 21:05
LeetCode
链表
二叉搜索树
中位数
c++
算法
C++项目:通讯录管理系统
项目目标:1、添加联系人2、显示联系人3、删除联系人4、查找联系人5、修改联系人6、清空通讯录自编头文件:#pragmaonce#include#includeusingname
spaces
td;#defineMAX1000
XuMian11
·
2024-02-05 21:05
c++
开发语言
7.29训练总结
CodeForces-1609E这种使得整个串不包含子串’abc’的题目,发现可以用线段树维护#includeusingname
spaces
td;constintmaxn=1e5+5;#definelsonnow
andyc_03
·
2024-02-05 21:39
算法
acm
倒计时64天
B-小红的因子数_牛客周赛Round31(nowcoder.com)超时了(108.33/125)#includeusingname
spaces
td;constintN=1e5+5;constintinf
算法怎么那么难啊
·
2024-02-05 20:54
c++
C# 创建快捷方式、获取快捷方式链接地址
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Text;name
spaceS
ci
scimence
·
2024-02-05 19:59
C#
创建快捷方式
ACWing842:排列数字(DFS算法)
数据范围1≤n≤7输入样例:3输出样例:123132213231312321#includeusingname
spaces
td;constintN=10;intp[N],n;boolflag[N];//
自律的kkk
·
2024-02-05 19:17
算法
数据结构
字符串哈希
#include#includeusingname
spaces
td;typedefunsignedlonglongUUL;//相当于取到超过2^64是自动取模(y总说的)constintN=1e5+10
自律的kkk
·
2024-02-05 19:47
算法
c++
开发语言
//读取一个字符串
#includeusingname
spaces
td;intmain(){//读取一个字符串intn=0;chara[10005];while(~scanf("%c",a)){scanf("%c",a);
leke2003
·
2024-02-05 18:35
算法
c++
开发语言
高精度除法 去除前导零 翻转函数 AcWing 794. 高精度除法
#includeusingname
spaces
td;vectordiv(vector&A,int&b,int&r){r=0;vectorC;for(inti=A.size()-1;i>=0;i--){r
三冬四夏会不会有点漫长
·
2024-02-05 18:22
算法竞赛
#
acwing算法基础
算法
高精度乘法 取模 去除前导零 AcWing 793. 高精度乘法
#includeusingname
spaces
td;vectormul(vector&A,int&b){vectorC;for(inti=0,t=0;i1&&C.back()==0)C.pop_back
三冬四夏会不会有点漫长
·
2024-02-05 18:21
算法竞赛
#
acwing算法基础
算法
并查集:240. 食物链
#includeusingname
spaces
td;constintN=50000+10;intp[N],d[N];intfind(intx){if(x!
三冬四夏会不会有点漫长
·
2024-02-05 18:51
#
数据结构
算法竞赛
算法
高精度减法 去除前导零 比较两个很大的正整数 取模的技巧 AcWing 792. 高精度减法
#includeusingname
spaces
td;boolcmp(vector&A,vector&B){if(A.size()!
三冬四夏会不会有点漫长
·
2024-02-05 18:51
算法竞赛
#
acwing算法基础
算法
c++
数据结构
保序离散化 前缀和 去重 pair AcWing 802. 区间和
#includeusingname
spaces
td;constintN=3e5+10;inta[N],s[N];typedefpairPII;vectoralls;vectoradd,query;intfind
三冬四夏会不会有点漫长
·
2024-02-05 18:20
#
acwing算法基础
算法竞赛
算法
c++
数据结构
DP-背包问题的一些题目
二维代码:#include#includeusingname
spaces
td;cons
mlww-
·
2024-02-05 18:19
动态规划
动态规划
算法
c++
2024.2.3 寒假训练记录(17)
数组成鸡牛客寒假集训1E本题又主要考察了贪心牛客寒假集训1Gwhy买外卖牛客寒假集训1H01背包,但是bit牛客寒假集训1ADFS搜索题目链接看数据很小于是纯暴力解法#includeusingname
spaces
td
Texcavator
·
2024-02-05 15:10
2024寒假训练记录
深度优先
算法
2024.2.4 寒假训练记录(18)
题目链接关于第二类斯特林数看这里#includeusingname
spaces
td;#defineintlonglongusingi64=longlon
Texcavator
·
2024-02-05 15:39
2024寒假训练记录
算法
2.1总结
有一个周期有点长,后面更一篇长的随手刷的一道水题,就不往今天的行程单添了问题:最大公约数题解:题目太水了,就是求三个数,其中两组的最大公约数,在对这两个公约数求最大公约数,得解#includeusingname
spaces
td
已经成为了代码的形状
·
2024-02-05 15:38
深度优先
算法
图论
2.2日总结
用来装他们的总金额和总价值,然后我们在看一个个的物品进行取或者不取两种操作,但是这题需要进行状态压缩,不能用二维的dp数组,否则会MLE,要用一维的滚动数组来解决问题#includeusingname
spaces
td
已经成为了代码的形状
·
2024-02-05 15:38
算法
图论
c++
排序刷题5
#include#includeusingname
spaces
td;#definemaxn200
Sking426
·
2024-02-05 15:17
排序
算法
数据结构
c++
排序算法
排序刷题3
#include#includeusingname
spaces
td;structStudent{intid;//学号intscore
Sking426
·
2024-02-05 15:43
算法
数据结构
c++
排序算法
搜索(3)dfs的连通性模型和搜索顺序
dfs内算法流程应为:赋值st数组,遍历四周(要求在迷宫内且没被搜过),出循环后returnfalse#include#include#includeusingname
spaces
td;constintN
BlessingSoftware1
·
2024-02-05 14:34
摆烂日记from
acwing
深度优先
算法
Codeforces Round 891 (Div. 3)补题
#includeusingname
spaces
td;intmain(){intt;scanf
as_sun
·
2024-02-05 14:31
codeforces补题
算法
c++
acwing提高——DFS之连通性问题+搜索顺序
pid=1215#includeusingname
spaces
td;constintN=110;boolst[N][N];charg[N][N];intn;intsx,sy,ex,ey;intdx[]=
( ̄(工) ̄)霸天下
·
2024-02-05 14:01
acwing提高
搜索
深度优先
算法
离谱题 3236:练39.1 书香阁座位
3236正常写法#includeusingname
spaces
td;intmain(){intsum,a,b;a=1;b=10;sum=b;coutusingname
spaces
td;intmain()
yangkehanSG
·
2024-02-05 14:20
c++
算法
开发语言
全新亿代整蛊“小”代妈 c++ 顶级整蛊小代码3.0 点开了给你的朋友才算好 家人们,代码启动( 温馨提示本代码原创(gezhengxu2024帮忙修改))最后一行有惊喜!!!(启动后按三有惊喜!)
include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932usingname
spaces
td
yangkehanSG
·
2024-02-05 14:50
c++
开发语言
全新亿代整蛊“小”代妈 c++ 顶级整蛊小代码4.0 点开了给你的朋友才算好 家人们,代码启动( 温馨提示本代码本人原创(gezhengxu2024帮忙修改))(启动后按5有惊喜!)
include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932usingname
spaces
td
yangkehanSG
·
2024-02-05 14:50
c++
开发语言
c++ 语法多态
编译阶段确定函数地址动态多态函数地址晚绑定:运行阶段确定函数位置classAnimalBase{public:intm_age;//虚函数函数在运行阶段绑定virtualvoidspeek(){cout#includeusingname
spaces
weixin_38432324
·
2024-02-05 14:19
c++
开发语言
c++ 顶级整蛊小代码2.0 点开了给你的朋友才算好 家人们,代码启动( 温馨提示本代码原创(gezhengxu2024帮忙修改))
include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932usingname
spaces
td
yangkehanSG
·
2024-02-05 14:19
c++
C++基础语法 类 02
#include#includeusingname
spaces
td;classPhone{private:stringm_name;public:Phone(stringname):m_name(name
weixin_38432324
·
2024-02-05 14:14
c++
开发语言
C++:如何优美地写代码
我先演示一个极端反例(滑动看完):#includeusingname
spaces
td;intmain(){for(inti=2020;iusingname
spaces
td;intmain(){for(inti
无影无踪的青蛙
·
2024-02-05 12:41
c++
开发语言
C++宏的计算规则
#include"iostream"usingname
spaces
td;#defineN2+3#defineM(2+3)#definearea1(L)L*L#definearea2(L)(L)*(L)#
1204157137 肖哥
·
2024-02-05 11:29
C++
CSP-J2023 T2公路 blog
#include#includeusingname
spaces
td;typedeflonglongll;lln,d;llt=0,oil=0;//oil:理想油量//llsjoil=0;floatsjoil
MackyinSU
·
2024-02-05 11:17
算法
c++
数据结构
P9749 [CSP-J 2023] 公路贪心前缀和
对于aia_iai来说使用价格为aia_iai的区间一定满足aj(j>=i)a_j(j>=i)aj(j>=i)且max(aj)usingname
spaces
td;#defineintlonglongvoidsolve
golemon.
·
2024-02-05 11:13
算法题
算法
c++
开发语言
【论文+demo】小红书提出个性化真实人像生成方法(2024.01.15发布,声称效果好于PhotoMaker)
可在huggingface上试用[2024/01/31]支持oneDiff加速,详细代码[2024/1/22]发布了模型、推理代码)和gradiodemo:https://huggingface.co/
spaces
曾小蛙
·
2024-02-05 10:56
论文解读
AIGC
生成式人工智能
人脸风格化
AI作画
InstanID
数字人
人脸合成
c++之QT
5.可以进行嵌入式开发2.展示一个窗口#include#include#includeusingname
spaces
td;intmain(intargc,char*argv[]
hongge_smile
·
2024-02-05 10:57
c++
qt
c++
开发语言
linux下的预编译、编译、汇编、连接,生成单独文件,感受编译过程
首先需要确认系统安装了gcc编译器,输入gcc-v或者g++-v,如果能看到版本号等信息就是已经存在了,如图(centos7):然后随便vim产生一个.cpp文件,下面给出一个示例:#includeusingname
spaces
td
星仔007
·
2024-02-05 09:19
linux
汇编
c++
vim
差分-二维数组
#includeusingname
spaces
td;constintN=10010;intd[N][N];voidsolve(){intn,m;cin>>n>>m;//memset(d,0,sizeof
可以输出hello了
·
2024-02-05 07:59
算法
蓝桥杯
java
递归方法的理解,什么时候递,什么时候归
#includeusingname
spaces
td;voidsum
可以输出hello了
·
2024-02-05 07:58
java
算法
开发语言
基础算法-汉诺塔-递归问题
#includeusingname
spaces
td
可以输出hello了
·
2024-02-05 07:28
c++
算法
数据结构
上一页
47
48
49
50
51
52
53
54
下一页
按字母分类:
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
其他