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
ongl
蓝桥杯刷题-07-整数删除-优先队列 + 模拟链表 ⭐
//优先队列+模拟链表#include#defineintl
ongl
ong#defineendl'\n'usingnamespacestd;typedefpairpii;constintN=5e5+10
椰椰荔枝糖
·
2025-02-05 09:58
刷题
蓝桥杯
链表
算法
C++11新特性之long long超长整形
1.介绍l
ongl
ong超长整形是C++11标准新添加的,用于表示更大范围整数的类型。2.用法占用空间:至少64位(8个字节)。对于有符号l
ongl
ong整形,后缀用“LL”或“II”标识。
画个逗号给明天"
·
2025-02-05 02:38
c++
开发语言
C语言各种类型之间转换详解
零扩展4.长类型转换为短类型5.自动类型转换5.1赋值时的类型转换5.2运算时的类型转换6.有符号和无符号数的比较6.无符号数回绕参考资料:1.C基本类型变量char/short/int/long/l
ongl
ong
ccJun-
·
2025-02-04 18:46
C/C++基础
c语言
数据类型
Codeforces Educational Codeforces Round 170 (Rated for Div. 2)
代码:#includeusingnamespacestd;#defineintl
ongl
ongconstintN=2e5+10,INF=0x3f3f3f3f;constintmod=1
关于SPFA它死了
·
2025-02-04 11:11
Codeforces
算法
c++
【基础教程】Python整数类型(int)详解
例如C语言提供了short、int、long、l
ongl
ong四种类型的整数,它们的长度依次递增,初学者在选择整数类型时往往比较迷惑,有时候还会导致数值溢出。而Python则不同,它的整数不分类型,
SAPmatinal
·
2025-02-03 21:25
Python
PAT 甲级 1093
发一下只是因为很喜欢《APT》#includeusingnamespacestd;l
ongl
ongintMOD=1000000007;intmain(){l
ongl
ongintts=0,las=0,ans
金秋飞雪
·
2025-02-02 20:37
算法
c++
数据结构
pat考试
2412. 完成所有交易的初始最少钱数
minimum-money-required-before-transactions/solutions/1830862/by-endlesscheng-lvymclassSolution{public:l
ongl
ongminimumM
咔咔咔的
·
2025-02-02 18:18
leetcode
c++
Missing Number CSES 300题
要点用途1LL*(x)将x变为l
ongl
ong(n*(n+1))>>1sum=1+2+3+…+n#include#define_for(i,a,b)for(inti=(a);i>n;l
ongl
ongsum
打豆豆1234
·
2025-02-02 18:17
CSES
等差数列
求和
遍历
算法
缺失值
寒假刷题Day19
三数之和的多种可能classSolution{public:intthreeSumMulti(vector&arr,inttarget){constintMOD=1'000'000'007;//正确的模数l
ongl
ongans
komo莫莫da
·
2025-02-02 14:22
java
开发语言
牛客网 除2!(详解)c++
因为我挑一个最大的出来,把它变成一半,这个时候总和减小肯定是最多的2:我们待会儿是要求所有数组元素的和,数据量有100,000这么大,每个数有10的九次方这么大,有可能超出int的范围,所以我们要用l
ongl
ong
h^hh
·
2025-02-02 07:26
c++
开发语言
算法
数据结构
Codeforces Round 276 (Div. 1) B. Maximum Value(数学+二分)【2100】
我们发现k×busingnamespacestd;#defineintl
ongl
ong#define
Auto114514
·
2025-02-01 20:13
ACM—数学
算法
牛客周赛 Round 65(A—G)
代码#includeusingnamespacestd;#defineintl
ongl
ongtypedefpairpii;constintN=2e5+5,M=1e6+5;constintmod=1e9+
Auto114514
·
2025-02-01 20:13
牛客竞赛
算法
F. Greetings
题目链接:Problem-F-Codeforces题目大意:给你n个线段,求有多少对(两个)线段满足完全覆盖,例如:设一个线段有a,b两点,满足aiusingnamespacestd;usingi64=l
ongl
ong
L_M_TY
·
2025-02-01 17:47
算法
归并排序
求逆序对
深度学习篇---数据存储类型
文章目录前言第一部分:C语言中的数据存储类型1.char(通常是8位)优点缺点2.short(通常是16位)优点缺点3.int(通常是32位)优点缺点4.long(通常是32位或64位)优点缺点5.l
ongl
ong
Ronin-Lotus
·
2025-01-31 21:42
深度学习篇
深度学习
人工智能
学习
笔记
C
Python
数据类型
洛谷P3383 【模板】线性筛素数
其中原理是保证范围内的每个合数都被删掉(在bool数组里面标记为非素数),而且任一合数只被:“最小质因数×最大因数(非自己)=这个合数”下面奉上代码部分:#includeusingnamespacestd;typedefl
ongl
ongl
l
怀念无所不能的你
·
2025-01-29 19:15
洛谷数学1基础数学问题
算法
数论
Python怎么使用全局变量?怎么使用全局变量字典?
###定义全局变量首先,在函数外部定义一个全局变量:```pyth
ongl
obal_var=10```###在函数内部读取全局变量如果只是想在函数内部读取全局变量的值,直接使用变量名即可:```pythondefread_global
许墨の小蝴蝶
·
2025-01-29 01:59
python
异或哈希(求区间内所有的数的出现的次数是否为偶数)
ExampleInputCopy2331221213235321211121345OutputCopyNONOYESNONOYES思路:异或哈希模板AC代码:#includeusingnamespacestd;typedefl
ongl
ongl
l
娇娇yyyyyy
·
2025-01-28 11:38
算法提高个人常用模板
哈希算法
算法
周报(2025.1.20 ~ 2025.1.26)
一、CodeforcesRound998(Div.3)E题用到并查集并查集模板#includeusingnamespacestd;#definelll
ongl
ong#definePIIpair#defineendl
@Happiness.
·
2025-01-26 22:21
cocoa
macos
objective-c
题海拾贝:P2085 最小函数值
我的博客:#includetypedefl
ongl
ongL
L;usingnamespacestd;constintN=1e4+10;LLA[N],B[N],C[N];structnode{LLnum;/
<但凡.
·
2025-01-26 18:24
题海拾贝
算法
c++
数据结构
算法竞赛入门经典(第二版)第二章循环结构程序设计注解与习题下
=EOF&&n&&m){a=0.0;for(l
ongl
ongi=n;i<=m;i++)//若变为int类型则,会有乘法溢出的问题{doubleb=i*i;a+=1/b;}printf("%.5f\n",
土豆呀土豆
·
2025-01-26 14:25
算法竞赛入门经典
算法竞赛
ACM
ACM培训2
学习总结--二分基础知识二分查找前提是有序(即单调),若无序一般先sort向左找while(l=x)r=mid;elsel=mid+1;}向右找while(lusingnamespacestd;intn;l
ongl
ongx
ZIZIZIZIZ()
·
2025-01-26 14:49
算法
笔记
素数筛法C++
话不多说,开始比较(有错请指出):1.暴力法:一个一个枚举#includeusingnamespacestd;boolisPrime(l
ongl
ongnum){for(l
ongl
ongi=2;iusingnamespacestd
c++初学者ABC
·
2025-01-25 23:44
C++
c++
算法
开发语言
分解质因数,求最大公约数和最小公倍数
3个c++程序分解质因数,求最大公约数和最小公倍数,方便数学计算1.分解质因数##includeusingnamespacestd;intmain(){while(1){l
ongl
ongx,c=0,count
2401_86161528
·
2025-01-25 18:40
c++
linux
Bootstrap Blazor 组件库 Table 组件 OnQueryAsync 查询 EF Core 键集分页、偏移分页 使用备忘
privatel
ongl
astId=0,firstId=0;privatel
ongl
astPageIndex=0;privateintlastPageItems=0;privateasyncTask>OnQueryAsync
cqths
·
2025-01-25 03:23
EF
Core
#
Blazor
Web
App
bootstrap
.net
web
app
洛谷-P1106-删数问题
删数问题-洛谷解题思路:1.由题可知,输入一个不超过250位的非负整数,超出了l
ongl
ong的范围,所以可以利用字符串来输入数字,并利用一个整型的数组从下标1开始来存储最高位到最低位的数字2.首先考虑
信息学奥赛-Mr-H
·
2025-01-25 01:04
信息学奥赛-贪心专题
算法
c++
贪心算法
前五题题解+更好的交换详解(分析大部分为后面的题目)
l
ongl
oong此题是一个水题,输入一个数x,并在特定的两串字符间输出x个o,我们很自然的想到先输出前面的L再通过for循环或者while等循环输出x个o,再输出后面的ng,代码如下#includeusingnamespacestd
dsszcx
·
2025-01-23 06:42
c++
算法
P8738 [蓝桥杯 2020 国 C] 天干地支--2024蓝桥杯冲刺省一
#include#defineintl
ongl
ong//(有超时风险)#definePIIpair#defineendl'\n'#defineLL__int128usingnam
一只蓝色小鲨鱼
·
2025-01-22 12:08
蓝桥杯
c语言
职场和发展
c++
数据结构
题解:洛谷 P1351 [NOIP2014 提高组] 联合权值
#includeusingnamespacestd;#pragmaG++optimisze(3,"Ofast","inline")#defineintl
ongl
ongconstintm
网络骑士hrg.
·
2025-01-21 19:59
算法
深度优先
c++
经验分享
C++11 新特性总结
C++11的新特性1变量和基本类型1.1l
ongl
ong类型扩展精度浮点数,10位有效数字1.2列表初始化初始化的几种不同形式,其中用花括号来初始化变量称为列表初始化;比如:inti=0;inti={0
weixin_30955617
·
2025-01-21 19:51
c/c++
数据结构与算法
《重生到现代之从零开始的C语言生活》——C语言的数据类型和变量
枚举-enum联合体-union在下面我们着重讲解内置类型字符型char可以创建一个字符型的变量(变量会在下文进行描述,在这知道即可)整形短整型shortint整形int长整型longint更长的整形l
ongl
ongi
yttandb
·
2025-01-21 14:40
c语言
生活
HTML<blockquote>标签
WWFhasbeenprotectingthefutureofnature.Theworld'sleadingconservationorganization,WWFworksin100countriesandissupportedby1.2millionmembersintheUnitedStatesandcloseto5milli
ongl
obal
新生派
·
2025-01-20 18:03
html
前端
【C++算法笔记】最基础篇------高精度算法
为什么要用高精度算法:l
ongl
ong的存储大小为9*10^19,即超过20位的数字将无法使用基本数据类型存储和计算,所以我们要使用其他方法存储设计。
孙小健的资料站
·
2025-01-20 18:31
算法学习笔记
c++
算法
笔记
C语言自定义类型
构造类型数据类型基本类型/基础类型整数类型短整型:short/shortint(2字节)整型:int(4字节)长整型:long/longint(8字节(64位系统))长长整型:l
ongl
ong/l
ongl
ongint
猫一样的妩媚
·
2025-01-19 11:43
c语言
开发语言
Python globals 函数 - Python零基础入门教程
目录一.Pyth
ongl
obals函数语法二.Pyth
ongl
obals函数使用三.猜你喜欢零基础Python学习路线推荐:Python学习目录>>Python基础入门在前面我们讲解了Python内置函数
苹果酱0567
·
2025-01-18 09:20
面试题汇总与解析
课程设计
spring
boot
layui
毕业设计
java
第十四届蓝桥杯三月真题刷题训练——第 18 天
函数对字符串进行排序#includeusingnamespacestd;intmain(){stringarr;cin>>arr;sort(arr.begin(),arr.end());cout#definelll
ongl
ongusingnamespacestd
不摘月亮
·
2025-01-18 09:47
蓝桥杯
蓝桥杯
c++
职场和发展
算法
c语言一维数组
一、一维数组的定义类型说明符数组名[常量表达式];(一)类型说明符---数据类型基本数据类型中整型int/short/long/l
ongl
ong浮点型float/double字符型char其它的数据类型
磨十三
·
2025-01-18 03:05
c语言
算法
开发语言
自学嵌入式
整型数据有int、short、long、l
ongl
ong四种类型。数据又分为有符号数和无符号数,二者数据表示的范围不同。
风华漫舞21
·
2025-01-17 13:01
linux
c语言
iOS - 底层实现中涉及的类型
typedefunsignedlonguintptr_t;//指针大小的无符号整数typedeflongptrdiff_t;//指针差值类型typedefunsignedintuint32_t;//32位无符号整数typedefunsignedl
ongl
onguint64
Batac_蝠猫
·
2025-01-16 15:43
iOS底层原理
ios
蓝桥杯18小白第5题
思维,#includeusingnamespacestd;#defineintl
ongl
ongconstintn=1e6+11;inta,b[n],c[n],d,k[n];structs{intx,y,
@liu666
·
2024-09-15 20:03
蓝桥杯
算法
职场和发展
P2865 [USACO06NOV] Roadblocks G(洛谷)(次短路)
//dijkstra#includeusingnamespacestd;constintN=1e5+5;typedefl
ongl
ongl
l;typedefpairPII;intn,m,k;intT;priority_queue
叶子清不青
·
2024-09-15 13:48
算法
10/24 每周学习总结5
1RecordingtheMoolympicsS#include#includeusingnamespacestd;typedefl
ongl
ongint_1;intn;structnode{int_1begin_b
木木ainiks
·
2024-09-15 10:53
1024程序员节
go-etcd实战
etcd简介etcdisastr
ongl
yconsistent,distributedkey-valuestorethatprovidesareliablewaytostoredatathatneedstobeaccessedbyadistributedsystemorclusterofmachines.Itgracefullyhandlesleaderelectionsduringnetwork
小书go
·
2024-09-13 13:53
golang
实战演练
golang
etcd
服务发现
服务注册
微服务
Ubuntu 18.04 出现GLIBC_2.28 not found的解决方法(亲测有效)
关于/lib/x86_64-linux-gnu/libc.so.6:versi
onGL
IBC_2.28’notfound`出现报错,建议不要使用源码包去编译并升级。
Yimning
·
2024-09-13 08:23
Ubuntu
Linux
ubuntu
linux
debian
1016 部分A+B (15分)
——————————wrong:1、Int的范围也没发现,而且l
ongl
ong转为Int居然没发现,sum没发现,temp也没发现2、数字是减0吗?
km15
·
2024-09-13 03:33
牛客小白月赛99(上)
材料打印题目描述登录—专业IT笔试面试备考平台_牛客网运行代码#includeusingnamespacestd;intmain(){intT;cin>>T;while(T--){l
ongl
onginta
筱姌
·
2024-09-12 19:52
牛客比赛
算法
c++
【数据结构】算法的时间复杂度和空间复杂度
比如对于以下斐波那契数列:l
ongl
ongFib(intN){if(N0;--end){intexchange=0;for(size_ti=1;ia[i]){Swap(&a[i-1],&a[i]);exchange
熙曦Sakura
·
2024-09-12 18:17
数据结构
算法
数据结构
完全背包求方案总数
#include#include#include#include#include#defineintl
ongl
ongusingnamespacestd;constintmaxn=1e3+5;intdp[
朴小明
·
2024-09-12 02:36
动态规划
素数筛
动态规划求解
C++学习笔记(15)
220、C++11新标准一、l
ongl
ong类型新
月夕花晨374
·
2024-09-11 10:13
c++
学习
笔记
hutool获取大数据量的excel内容及sheet名称问题
时代码如下privatestaticRowHandlercreateRowHandler(){returnnewRowHandler(){@Overridepublicvoidhandle(inti,l
ongl
liu_qixiang
·
2024-09-10 18:54
excel
线段树(模板)
#includeusingnamespacestd;#defineintl
ongl
ong#defineendl'\n'#defineIOSios::sync_with_stdio(false);cin.tie
数学收藏家
·
2024-09-10 14:50
线段树
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他