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
NameSpaces
小红树上染色 -树形dp
代码#includeusing
namespaces
td;usingll=longlong;constintN=1e5+10;constintmod=1e9+7;vectoradj[N];lldp[N][
.y.a.o.
·
2024-01-30 19:05
深度优先
算法
c++
小红整数操作 -反悔贪心
代码#includeusing
namespaces
td;usingll=longlong;llgcd(lla,llb){returnb?
.y.a.o.
·
2024-01-30 19:04
算法
c++
思维
小红统计区间(hard) - 树状数组 + 离散化
对于每一段符合条件的区间[l,r][l,r][l,r]都有sum[r]−sum[l−1]>=ksum[r]-sum[l-1]>=ksum[r]−sum[l−1]>=k,也就是sum[l−1]using
namespaces
td
.y.a.o.
·
2024-01-30 19:34
算法
c++
树状数组
离散化
C. Factorials and Powers of Two -二进制枚举
代码#includeusing
namespaces
td;usingll=longlong;llfac[20];voidget(){fac[0]=fac[1]=1;for(inti=2;i0;i-=i&-
.y.a.o.
·
2024-01-30 19:02
算法
c++
思维
C++ 数论相关题目:容斥原理。能被整除的数
#include#includeusing
namespaces
td;typede
伏城无嗔
·
2024-01-30 19:22
算法笔记
数论
力扣
c++
算法
数据结构
蓝桥杯练习系统:【试题 算法训练 最大质因数】
样例输入436384042样例输出38数据规模和约定60%的数据满足:Nusing
namespaces
td;intmax_primefac
热血少年鸡小龙
·
2024-01-30 18:59
蓝桥杯之小白刷刷题
蓝桥杯
c++
职场和发展
第二题:A. Satisfying Constraints
#includeusing
namespaces
td;constintN=110;intq[N];intmain(){ios::sync_with_stdio(false);cin.tie(nullptr
三冬四夏会不会有点漫长
·
2024-01-30 17:39
#
CF
div2
A题
算法
第一题:A. We Got Everything Covered!
#includeusing
namespaces
td;intmain(){ios::sync_with_stdio(false);cin.tie(nullptr);intt;cin>>t;while(t-
三冬四夏会不会有点漫长
·
2024-01-30 17:09
#
CF
div2
A题
everything
第三题:A. Least Product
#includeusing
namespaces
td;voidsolve(){intn;cin>>n;vectorq;while(n--){intx;cin>>x;q.push_back(x);}intcnt
三冬四夏会不会有点漫长
·
2024-01-30 17:07
#
CF
div2
A题
算法
ColorPicker的操作会影响Button按钮的样式,需注意~~~
ColorPicker的操作会将Button的样式修改,具体看下面的例子..例如:@
namespaces
"library://ns.adobe.com/flex/spark";@namespacemx"library
郎岳樟
·
2024-01-30 14:42
flex
button
library
application
function
import
c
【C++】——类和对象(中)
voidInit(intyear,intmonth,intday){_year=year;_month=month;_day=day;}voidPrint(){cout_year_month_dayusing
namespaces
td
_麦麦_
·
2024-01-30 14:01
c++
java
开发语言
模拟帝国类游戏(c++语言)(保证能运行)
直接上代码(游戏有的功能没做,还不能用):作者卑微申请:给个赞,再观看:#include#include#includeusing
namespaces
td;voidplayer_one(intend){
star-dusts
·
2024-01-30 14:28
c++
游戏
算法
P1012 [NOIP1998 提高组] 拼数题解
输出格式一个正整数,表示最大的整数输入输出样例输入样例313312343输出样例34331213代码#include#includeusing
namespaces
td;structnode{strings
互联网的猫
·
2024-01-30 13:09
贪心算法专题
排序算法专题
算法
c++
牛客周赛Round29补题
#include#includeusing
namespaces
td;longlonga,b;intmain(){cin>>a>>b;if(a==b)coutb)coutusing
namespaces
td
阳光彩虹小白马943
·
2024-01-30 12:08
算法
基于二叉链表的二叉树结点个数的统计
#include#includeusing
namespaces
td;typedefcharTElemType;#defineOK1typedefintStatus;typedefstructBiNode
点一下我的id
·
2024-01-30 10:11
C++ Qt中 类的构造函数 & 析构函数
test#includeusing
namespaces
td;classLine{public:Line();//这是构造函数voi
Cherry_keven
·
2024-01-30 09:04
C++
c++
C++入门【36-C++ 类构造函数 & 析构函数】
下面的实例有助于更好地理解构造函数的概念:实例#includeusing
namespaces
td;classLine{public:voidsetLength(doublelen);doublege
心灵行者
·
2024-01-30 09:32
C++入门
c++
开发语言
jnu第一大混子的训练纪录3:基础图论和基础数论
:洛谷2819#include#include#include#include#include#include#include#include#include#include#includeusing
namespaces
td
始归零
·
2024-01-30 09:06
图论
双指针算法
如果用一个双重循环来遍历:for(inti=0;iusing
namespaces
td;intmain(){chara[1001];gets(a);intlena=strlen(a);for(inti=0
啊丢_
·
2024-01-30 09:01
算法
数据结构
递归的经典例题
例题1:递归上楼梯#includeusing
namespaces
td;//设共有n级楼梯,某人每步可走1级也可以走2级。//问:求从底层开始走完全部楼梯得有多少种走法?
啊丢_
·
2024-01-30 09:31
c++
c++
算法
开发语言
深搜(DFS)与广搜(BFS)
输入:第一行是一个正整数N(2using
namespaces
td;/*40000010110011102*///深搜,孙悟空在地图的左上角,师傅所在的地方为2,//有石头的地方为1,有路的地方为
啊丢_
·
2024-01-30 09:30
c++
深度优先
宽度优先
算法
数论与图论
数论筛质数最普通的筛法O(nlogn):voidget_primes2(){for(inti=2;iusing
namespaces
td;intn;boolisprime(longlonga){if(a=
啊丢_
·
2024-01-30 09:28
c++
图论
洛谷P1996 约瑟夫问题
输入输出样例输入103输出36927185104说明/提示1≤m,n≤100参考代码#include#includeusing
namespaces
td;in
我好弱啊啊
·
2024-01-30 08:52
洛谷
算法
C++冲鸭~【面向对象】
:doublelength;//盒子长doublebreadth;//盒子宽doubleheight;//盒子高};对象定义Boxbox1;Boxbox2;访问数据成员示例:#includeusing
namespaces
td
漂泊老猫
·
2024-01-30 08:21
C++冲鸭~
c++
开发语言
信息学竞赛中的数学 习题集911-920(10题)
第2集|C++小学组20203模拟测评题——2、积善成德https://www.douyin.com/video/7305241928356859173登录#includeusing
namespaces
td
dllglvzhenfeng
·
2024-01-30 08:17
程序猿的数学
创新
计算机考研机试
算法
信息学竞赛中的数学
信奥中的数学
程序员的数学
GESP
CSP-J
NOIP
c++学习记录 多态—案例2—电脑组装
#includeusing
namespaces
td;//抽象不同的零件//抽象的cpu类classCpu{public://抽象的计算函数virtualvoidcalculate()=0;};//抽象的显卡类
泰泰的碳尼
·
2024-01-30 07:57
学习
c++
开发语言
数论 | 质数
文章目录质数的判定:试除法分解质因数:试除法筛质数朴素做法优化:埃氏筛法优化:线性筛法质数的判定:试除法不推荐i*iusing
namespaces
td;intn;boolisPrime(intn){if
一根老麻花
·
2024-01-30 06:18
手撕算法
算法
c++
数据结构
数论
质数
java后缀表达式用栈_【数据结构】用栈实现对后缀表达式的计算
VS2008基本就不支持C++11新的特性;我们用后缀表达式,利用数据结构中的栈,进行结果的计算如果是操作数,则压栈如果是操作符,则出栈两个元素,根据操作符进行计算之后再压栈#includeusing
namespaces
td
叽咕叽咕咕咕咕
·
2024-01-30 06:53
java后缀表达式用栈
【数据结构】 二叉搜索树的模拟实现——完整代码
BSTree.h#define_CRT_SECURE_NO_WARNINGS1#pragmaonce#include#includeusing
namespaces
td;namesp
ly_1115
·
2024-01-30 06:47
数据结构的模拟实现
二叉搜索树
完整代码
成员函数
【C++】顺序栈实现后缀表达式计算
输入样例:1123+*#输出样例:55//顺序栈实现后缀表达式计算//author:Mitchell//data:3.16#includeusing
namespaces
td;classstack{private
Mitch311
·
2024-01-30 06:16
数据结构
算法
数据结构
c++
stack
栈
1.26 day3 C++
#includeusing
namespaces
td;classPer//封装Per类{private://私有stringname;//名字intage;//年龄int*height;//身高int*weight
谢必安灬
·
2024-01-30 05:24
c++
开发语言
C++大学教程(第九版)7.30 打印array对象 7.31 逆序打印字符串(递归练习题)
代码#include#includeusing
namespaces
td;constintarraySize=15;voidprintArray(a
小Q小Q
·
2024-01-30 03:53
C++大学教程
c++
开发语言
KY98 棋盘游戏
DFS深搜板子ti#includeusing
namespaces
td;#definelllonglongstructNode{intm,n;};intn;intres=100010;intv[6][6]
QingQingDE23
·
2024-01-30 01:34
游戏
深度优先
算法
C++常用标准模板库——algorithm
algorithm使用algorithm头文件,需要在头文件下面加一行“using
namespaces
td”,才能使用。
永夜天
·
2024-01-30 01:29
C++常用标准模板库
c++
C++标准库
algorithm
蓝桥杯-加法变乘法
#includeusing
namespaces
td;intmain(){for(inti=1;
Mr 种马
·
2024-01-30 01:26
C++蓝桥杯真题解析-B组
关于C++:STL容器模板类的内部实现-array
容器模板类的内部实现-array本小白最近在学习C++中STL的相关知识,特在此做个笔记今天看到了array类的内部实现,特此来整理一下所学关于using关键字的使用:在洛谷刷题时常见的用法:using
namespaces
td
amazcuter
·
2024-01-30 01:49
c++
【c++&leetcode】895. Maximum Frequency Stack
问题入口O(1)#include#include#includeusing
namespaces
td;classFreqStack{public:unordered_mapfreq;unordered_map
rannrann
·
2024-01-30 01:46
c++
leetcode
开发语言
L1-030 一帮一 (15分)
L1-030一帮一(15分)题目详情:AC代码:#includeusing
namespaces
td;intmain(){intn,p=0,q=0,h1=0,h2=0,a[50]={};stringstr1
信小海
·
2024-01-30 00:05
c++
从c到c++——6:auto
auto声明的变量必须初始化c++中判断类型的代码:#include#includeusing
namespaces
td;intmain(){intx=10;autoy=
好好学习O(∩_∩)O
·
2024-01-29 23:27
c++
开发语言
C++ 数论相关题目 求组合数III
#include#includetypedeflonglongLL;using
namespaces
td;intp;intqmi(inta,intk){intres=1;while(k){if(k&1){
伏城无嗔
·
2024-01-29 23:20
数论
力扣
算法笔记
c++
算法
C++ 数论相关题目 求组合数IV
数据范围1≤b≤a≤5000输入样例:53输出样例:10#include#include#includeusing
namespaces
td;constintN=5010;intprimes[N],cnt
伏城无嗔
·
2024-01-29 23:48
算法笔记
数论
力扣
算法
嵌入式学习-C++-Day1
C+±Day1一、思维导图二、作业1.提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数(要求使用C++风格字符串完成)#include#includeusing
namespaces
td
weixin_51597107
·
2024-01-29 23:39
学习
c++
开发语言
嵌入式学习-C++-Day3
#includeusing
namespaces
td;classPer{private:stringname;intage;int*height;int*weight;pub
weixin_51597107
·
2024-01-29 23:39
学习
c++
开发语言
2020-06-16判断同构数
#includeusing
namespaces
td;intmain(){intt=76;intans=0;//是同构数返回1,否则返回0if(t10){i
fhsh
·
2024-01-29 23:12
嵌入式学习-C++-Day2
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusing
namespaces
td
weixin_51597107
·
2024-01-29 23:05
学习
c++
开发语言
1013 数素数 (20分)
现任给两个正整数M#includeusing
namespaces
td;boolisPrime(inta){for(inti=2;i*i>m>>n;inti=2;vectorv;while(cnt=m)v.push_back
我真的想上大学
·
2024-01-29 22:01
蓝桥杯真题刷题1.倍数
#includeusing
namespaces
td;intmain(){inti=0;intcount=0;for(i=1;i<=2020;i++){if(i%4==0&&i%6==0){count
失落的香蕉
·
2024-01-29 22:07
算法
1050:骑车与走路
#includeusing
namespaces
td;intmain(){inttime=0,jl;cin>>jl;doubleztime=0,btime=0;ztime=jl/1.2;btime
Dehdhehd
·
2024-01-29 21:19
算法
1049:晶晶赴约会
#includeusing
namespaces
td;intmain(){intday;cin>>day;if(day==1||day==3||day==5){cout<<"NO"
Dehdhehd
·
2024-01-29 21:19
算法
1056:点和正方形的关系
#includeusing
namespaces
td;intmain(){intx,y;cin>>x>>y;if((x>=-1&&x=-1&&y<=1)){cout<
Dehdhehd
·
2024-01-29 21:19
c++
算法
数据结构
上一页
54
55
56
57
58
59
60
61
下一页
按字母分类:
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
其他