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
Harry·porter
---------------------------#include#include#include#include#include#include#include#includeusingname
spaces
td
Touxin_jingluo
·
2024-02-06 19:43
c++
游戏程序
1589. 最大部分和(连续部分和)
#include#includeusingname
spaces
td;intmain(){intn;cin>>n;vectorv(n+1),dp(n+1);for(inti=1;i>v[i];}dp[1]
信息学奥赛C++
·
2024-02-06 19:40
算法
图论
动态规划
1153. 查找“支撑数”
#includeusingname
spaces
td;main(){intm,a[100],count=0;cin>>m;for(inti=0;i>a[i];}for(intk=1;ka
信息学奥赛C++
·
2024-02-06 19:40
算法
c++
数据结构
杭电OJ 1174(C++)
#include#includeusingname
spaces
td;intmain(){intT;cin>>T;doubleh1,r1,x1,y1,z1;doubleh2,r2,x2,y2,z2,x3,
Intelligence1028
·
2024-02-06 19:39
杭电OJ
1174. 求和
#includeusingname
spaces
td;intmain(){inta[35];intn;cin>>n;for(inti=1;i>a[i];}for(inti=1;i<
信息学奥赛C++
·
2024-02-06 19:07
c++
Good Bye 2023 A-D(E代补)
直接模拟即可,记得开longlong#include#include#defineintlonglongusingname
spaces
td;constintN=2e5+10;intT,n,k;voidsolve
TLE自动机呐呐~
·
2024-02-06 19:36
codeforces补题记录
算法
1200*B. A Balanced Problemset?(贪心&数学)
#includeusingname
spaces
td;intn,x;voidsolve(){scanf("%d%d",&x,&n);intans=1;for(inti=1;i<=x/i;i++)if(x%
陈进士学习
·
2024-02-06 19:05
codeforces
算法
c++
开发语言
数学
贪心
B. Two Divisors(数学)
Problem-B-Codeforces#includeusingname
spaces
td;#defineintlonglongconstintN=2e5+5;inta,b;voidsolve(){scanf
陈进士学习
·
2024-02-06 19:34
codeforces
算法
c语言
c++
数据结构
数学
【Linux】select、poll、epoll代码
a:b;}name
spaces
elect_cbr{staticconstintdefault_port=8080;staticconstintfd_num=sizeof(fd_set)*8;static
e_Gravity
·
2024-02-06 19:15
Linux
sql
数据库
2022-09-15
includeincludeincludeincludeincludeincludeincludeusingname
spaces
td;usingnamespacechrono;structCourier
Tomasmule
·
2024-02-06 18:14
LX410 递归求1的个数 PTA 10分
要求使用递归函数完成,函数接口定义如下:intcount_one(unsignedlonglongn);裁判测试程序样例:#includeusingname
spaces
td;intcount_one(unsignedlonglongn
阿瞒man
·
2024-02-06 18:01
c++
算法
数据结构
Opencv之点线面(c++版)
#include#includeusingnamespacecv;usingname
spaces
td;intmain(){//圆心Pointcenter=Point(255,255);//半径intr=
Axia_zy
·
2024-02-06 17:45
OpenCV
贪心_分类讨论_边界问题_1921_C. Sending Messages
#includeusingname
spaces
td;constintN=2e5+10;intq[N];voidsolve(){intn,f,a,b;cin>>n>>f>>a>>b;for(inti=0;
三冬四夏会不会有点漫长
·
2024-02-06 17:35
#
CF
900-1000
c语言
开发语言
递推_二进制_方向向量_边界问题_异或_贪心_备份数组_AcWing 95. 费解的开关
#includeusingname
spaces
td;constintN=10;chara[N][N],backups[N][N];intdx[5]={-1,0,1,0,0},dy[5]={0,0,0,1
三冬四夏会不会有点漫长
·
2024-02-06 17:34
#
acwing算法提高
算法
数论_最小公倍数_最大公约数_结论_分类讨论_1916_B. Two Divisors
#includeusingname
spaces
td;intgcd(inta,intb){returnb>0?
三冬四夏会不会有点漫长
·
2024-02-06 17:04
#
CF
900-1000
算法
C++实现智能指针(涉及知识点:重载运算符,内存泄露的风险)
因此test01函数运行结束,将释放该对象,就释放了p#includeusingname
spaces
td;classper
computer_vision_chen
·
2024-02-06 13:38
C++笔记
c++
开发语言
数据结构——从概念到c++实现(王红梅第3版)第一章算法设计题答案
#includeusingname
spaces
td;intmain(){intmax,second_max;intA[20];cout>A;max=second_max=A[0];for(inti
爱栗创
·
2024-02-06 12:19
数据结构
字符串
c++
算法
【无标题】
6斯德哥尔摩火车上的题分数15作者陈越单位浙江大学上图是新浪微博上的一则趣闻,是瑞典斯德哥尔摩火车上的一道题,看上去是段伪代码:s=''a='1112031584'for(i=1;iusingname
spaces
td
热血少年鸡小龙
·
2024-02-06 11:51
算法
倍增原理 快速加 龟速乘 右移 位运算 与运算 数据范围 AcWing 90. 64位整数乘法
#includeusingname
spaces
td;typedeflonglongLL;LLqadd(LLa,LLb,LLp){LLres=0;while(b){if(b&1)res=(res+a)%p
三冬四夏会不会有点漫长
·
2024-02-06 11:57
#
acwing算法提高
c++
算法
开发语言
快速幂 位运算 与运算 右移运算 把乘方运算转换成乘法运算 AcWing 875. 快速幂
#includeusingname
spaces
td;typedeflonglongLL;intqmi(inta,intb,intp){intres=1;while(b){if(b&1)res=(LL)res
三冬四夏会不会有点漫长
·
2024-02-06 11:56
#
acwing算法基础
算法
c++
数据结构
站队1和站队2
输入格式第一行:n(2usingname
spaces
td;inta[110];intmain(){intn;cin>>n;for(inti=1;i>a[i];}for(inti=1;ia[j]){swap
2301_81777172
·
2024-02-06 11:08
算法
2024文章专题
算法
排序(从大到小)
样例#1样例输入#1531524样例输出#154321#include#includeusingname
spaces
td;inta[1010];intn,k;boolcmp(intx,inty){returnx
2301_81777172
·
2024-02-06 11:08
2024文章专题
算法
算法
★约瑟夫出圈问题(可动态输入)C/C++
程序源代码(C++):#includeusingname
spaces
td;voidmain(){int*a,n,m;cout>n>>m;//表示可以动态输入a=newint[n+1];for(inti=
赛博米桃
·
2024-02-06 11:35
ini
c
循环——枚举算法(3)(c++)
nusingname
spaces
td;intmain(){intn;cin>>n;for(inti=1;true;i++){intsum=0;for(intj=1;j0){coutusingnamespac
mmz1207
·
2024-02-06 10:01
算法
c++
开发语言
C++:constexpr 和 const 的区别
看下面的例子#include#includeusingname
spaces
td;constintfunc1(){return10;}intmain(){arrayarr1;return0;}对于arr1
见牛羊
·
2024-02-06 10:47
C++
c++
开发语言
2021年第十二届蓝桥杯省赛第一场B组题解(自己写的)
相关代码:#includeusingname
spaces
td;intmain(){coutusingname
spaces
td;inta[10];intflag=0;intmain(){for(inti=
远不及你的微笑
·
2024-02-06 08:14
算法
蓝桥杯
Acwing第725题(完全数)
暴力算法:#includeusingname
spaces
td;intmain(){intN;inta;longlongs=0;cin>>N;for(inti=0;i>
远不及你的微笑
·
2024-02-06 08:13
c++
蓝桥杯
职场和发展
c语言
C++多线程:this_thread 命名空间
源码类似于如下:name
spaces
td{namespacethis_thread{//...................}}get_id()get_id()std::this_thread::get_id
scx_link
·
2024-02-06 08:02
C
and
C++的笔记
c++
java
开发语言
C++ 二维vector<vector<>>转置
上code#include#include#includeusingname
spaces
td;intmain(){vector>matrix={{"a","b","c"},{},{"d","e"},{}
Echo_C611
·
2024-02-06 08:50
c++
算法
开发语言
cout保留小数位
printf的是这样用的#includeusingname
spaces
td;intmain(){floata;scanf("%f",&a);printf("%0.5f",a);}cout
CodeAlan
·
2024-02-06 08:15
C++
C++
cout
保留小数点
【编译原理】正则表达式转NFA
第一步:读入正则表达式从txt文件中读入正则表达式#include#include#include#include#include#defineMAX_TOKEN100usingname
spaces
td
倒过来是圈圈
·
2024-02-06 08:38
编译原理
正则表达式
非确定性有穷自动机
C++之可调用对象、bind绑定器和function包装器
这里举几个例子仿函数(本质是重载了()的类)#includeusingname
spaces
td;structObject{voidoperator()(
小谢%同学
·
2024-02-06 07:45
C++学习
c++
开发语言
c++ 用std::function包装类的非静态成员
可以将封装不同的,但是可转换的函数指针的function转换;这里我们不探讨在函数适配上的功能;直接上代码,看代码理解比文字好一百倍:#include#include#includeusingname
spaces
td
刘欢明
·
2024-02-06 07:15
c++
开发语言
C/C++ 回调函数 callback 异步编程
一、C语言的回调函数1.小试牛刀#includeusingname
spaces
td;#include#includeintadd(inta,intb){returna+b;}voidtest01(){/
呵呵哒( ̄▽ ̄)"
·
2024-02-06 07:08
c++
算法
开发语言
异步编程
2019-03-11 迷宫
#include#include#include#includeusingname
spaces
td;constintmaxn=110;chara[maxn][maxn];intn,x0,y0,x1,y1
桐桑入梦
·
2024-02-06 07:39
k8s学习-Service Account和RBAC授权
UserAccount是全局性,在集群所有name
spaces
中
ByteX
·
2024-02-06 07:16
kubernetes
学习
容器
C++中的前缀和
#includeusingname
spaces
td;constintMAXN=100010;intPrefixSum[MAXN];intmain(){intn;cin>>n;//读入数组for(inti
Galaxy银河
·
2024-02-06 07:09
C++更多语法
算法
数据结构
判断字符串是否包含正则表达式默认的特殊字符c++
代码:#include#includeusingname
spaces
td;//checkifcodecontainsregexspecialchars:*$^+?\{
Railshiqian
·
2024-02-06 07:08
正则表达式
c++
开发语言
c++学生系统(已更新)
#include#includeusingname
spaces
td;stringxue[5001],xingbie[5001];longintxuehao[5001],jifen[5001],zhan=
gezhengxu2024
·
2024-02-06 03:41
c++
系统
c++
算法
开发语言
树状数组中差分应用(P3372 线段树、P4514上帝造题的七分钟)
差分主要分为一维差分和二维差分,差分的应用重要在于推导1.一维差分(P3372【模板】线段树1)省略推导过程,精髓在于维护两颗树状数组(d代表差分,query代表区间和)贴代码#includeusingname
spaces
td
why_not_fly
·
2024-02-06 02:00
算法
c++
数据结构
P2024 [NOI2001] 食物链 带权(种类)并查集整理
并且找到它的权值对应的关系(或者说关系对应的权值)1.权值,0等价1A吃B2A被B吃2.将A指向B当作一个箭头,这样找关系就好找了,剩下解释在代码与书中有笔记存留#贴代码#includeusingname
spaces
td
why_not_fly
·
2024-02-06 02:30
算法
图论
数据结构
select代码实现1
epoll#include#include#include#include#include#include#include#include#include#definePORT8001usingname
spaces
td
e_Gravity
·
2024-02-06 02:21
Linux
网络
c++
C++之结构体
#includeusingname
spaces
td;structPoint{intx,y;//成员变量Point(intx=0,inty=0):x(x),y(y){}//构造函数};Pointoperator
互联网的猫
·
2024-02-06 02:44
C++
c++
PAT 1005 继续(3n+1)猜想 (25 分)
#include#include#includeusingname
spaces
td;boolHashTable[10000];boolcmp(inta,intb){returna>b;}intmain(
昭明ZMing
·
2024-02-06 02:19
算法.1-三大排序算法-对数器-二分
SelectionSort{publicstaticvoidselectionSort(int[]arr){if(arr==null||arr.length#include#includeusingname
spaces
td
yiyeyeshenlan
·
2024-02-06 01:25
算法
排序算法
java
[Usaco2007 Jan]Running贝茜的晨练计划
题目描述奶牛们打算通过锻炼来培养自己的运动细胞,作为其中的一员,贝茜选择的运动方式是每天进行N(1usingname
spaces
td;intn,m,d[10010][510],a[10010];intmain
cgj0128_1
·
2024-02-06 00:46
动态规划
动态规划
加快程序速度的技巧
的第k位(从右到左)n&(1四边行不等式/斜率/单调队列/高级数据结构/优化如,合并石子问题使用单调队列优化:可以将时间复杂度降至O(n^2)未优化代码:O(n^3)#includeusingname
spaces
t
cgj0128_1
·
2024-02-06 00:46
算法
数据结构
洛谷P3084 [USACO13OPEN] Photo G
题目描述FarmerJohnhasdecidedtoassembleapanoramicphotoofalineupofhisNcows(1usingname
spaces
td;intn,m;structEdge
cgj0128_1
·
2024-02-06 00:16
算法
图论
[Usaco2008 Feb]Line连线游戏
游戏开始的时候,FJ会给贝茜一块画着N(2usingname
spaces
td;intn;structN{intx;inty;}a[210];intans=0;mapm;intmain(){cin>>n;
cgj0128_1
·
2024-02-06 00:45
游戏
算法
数据结构
dp_day4(完全背包)
零钱兑换4.完全平方数5.单词拆分对01背包有疑问请看我的博客完全背包是由01背包演变而来的,区别是每种物品有多个.体现在代码上就是背包容量从小到大遍历即可完全背包代码#includeusingname
spaces
td
像风一样_
·
2024-02-05 23:30
算法
动态规划
c++
leetcode
上一页
46
47
48
49
50
51
52
53
下一页
按字母分类:
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
其他