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
1.26 C++ day3
代码#includeusingname
spaces
td;classPer//封装一个Per类{private://表示私有属性stringname;//成员:姓名intage;//成员:年龄int*heigh
⠀
·
2024-01-31 01:32
c++
开发语言
1.24 C++ day1
思维导图试编程提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数,要求使用C++风格字符串完成#includeusingname
spaces
td;intmain()
⠀
·
2024-01-31 01:01
c++
算法
数据结构
1.30 C++ day4
思维导图构造函数、析构函数、拷贝构造函数、拷贝赋值函数代码#includeusingname
spaces
td;classStu//封装一个学生类{private://私有属性stringname;intid
⠀
·
2024-01-31 01:30
c++
开发语言
【C++】string类的模拟实现
#include#includeusingname
spaces
td;namespacejxh{classstring{public:/*string(constchar*str=""):_str(newchar
嘛弄
·
2024-01-30 23:10
c++
算法
string
模拟实现
2021:【例4.6】最大公约数 信息学奥赛一本通(C++版)
【输入样例】46【输出样例】2【提示】【数据范围】对于全部数据:m,nusingname
spaces
td;intmain(){inta,b;cin>>a>>b;intda,xiao;
SZefdsr
·
2024-01-30 23:06
c++
算法
数据结构
【信息学奥赛-C++】2021:【例4.6】最大公约数
#includeusingname
spaces
td;intmain(){intm,n,r;cin>>m>>n;r=m%n;while(r!
雾里看花花里看雾
·
2024-01-30 23:06
信息学奥赛
c++
算法
开发语言
1072:鸡尾酒疗法
题目说如果y-x大于5%,也就是说算出他们的有效率,5%可以化解为0.05,所以公式就是,有效病例/总病例>%5#includeusingname
spaces
td;intmain(){intn;cin>
陈无忧cy
·
2024-01-30 23:03
c++
算法
开发语言
信奥一本通:2022:【例4.7】最小n值
然后输出在这个过程中是多少次,也就是n,那么我们怎么把分数加起来,就只能把分数变为小数,可以发现,上面再相加过程中一直变得是分母,分子一直是1,那怎么把分数变为小数,就用分子除以分母#includeusingname
spaces
td
陈无忧cy
·
2024-01-30 23:03
算法
信奥赛
C++
c++
2021:【例4.6】最大公约数
太简单了,直接看代码公约数就是他们最大的因数,例如4的因数有124,而6的因数有123,那么2就是他们最大的公约数#includeusingname
spaces
td;intmain(){intm,n,c
陈无忧cy
·
2024-01-30 23:02
算法
c++
数据结构
信奥赛
信奥一本通
谢尔宾斯基三角形 C++
下面是用C++代码模拟的过程:#includeusingname
spaces
td;intmain(){
蓝色奇夸克
·
2024-01-30 22:32
c++
算法
开发语言
C++倒三角形
倒三角形–算法竞赛经典习题2-3:输入正整数nusingname
spaces
td;intmain(){inti,j,n,k;cin>>n;k=n;for(i=1;i<=n;i++){//第一层for用来确定行数
EXpelliarmus~
·
2024-01-30 22:32
c++
算法
三角形triangle
三角形中的行数>1但#defineMAX101//数组大小usingname
spaces
td;intmain(){intn,d[MAX][MAX
ff_11111
·
2024-01-30 22:31
c++
算法
【C++】三角形(triangle)
#include#includeusingname
spaces
td;int
CuberW
·
2024-01-30 22:00
c++
开发语言
C++的布尔类型
bool类型只有两个值:true-----表示真(本质是1)false----表示假(本质是0)#includeusingname
spaces
td;intmain(){//创建bool数据类型boolflag
头顶一只喵喵
·
2024-01-30 22:26
c++
开发语言
算法
c++病毒4.0(鼠标乱飞修复)
include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932usingname
spaces
td
gezhengxu2024
·
2024-01-30 22:44
c++
病毒
c++
病毒
C++语法基础及使用案例
C++语法基础及使用案例1.第一个C++程序#includeusingname
spaces
td;intmain(){coutusingname
spaces
td;intmain(){coutusingname
spaces
td
神奇的布欧
·
2024-01-30 22:24
c++
算法
开发语言
c语言
vscode
C++ 读写锁
需要boost库支持,或者C++17原生支持std::shared_mutex#include#includeusingname
spaces
td;typedefboost::shared_mutexSharedMutex
qq_38781075
·
2024-01-30 22:53
c++
算法
开发语言
C++ 将 private 转换为 public
将代码第一行加上#defineprivatepublic#defineprotectedpublic其实就是转换一下宏定义,可能不是很优雅,只是提供一种思路,下面代码编译不报错#includeusingname
spaces
td
qq_38781075
·
2024-01-30 22:23
c++
C++ 基本数据类型
void#include#includeusingname
spaces
td;intmain(){c
WongKyunban
·
2024-01-30 19:49
C/C++
c++
小红树上染色 -树形dp
代码#includeusingname
spaces
td;usingll=longlong;constintN=1e5+10;constintmod=1e9+7;vectoradj[N];lldp[N][
.y.a.o.
·
2024-01-30 19:05
深度优先
算法
c++
小红整数操作 -反悔贪心
代码#includeusingname
spaces
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]usingname
spaces
td
.y.a.o.
·
2024-01-30 19:34
算法
c++
树状数组
离散化
C. Factorials and Powers of Two -二进制枚举
代码#includeusingname
spaces
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#includeusingname
spaces
td;typede
伏城无嗔
·
2024-01-30 19:22
算法笔记
数论
力扣
c++
算法
数据结构
蓝桥杯练习系统:【试题 算法训练 最大质因数】
样例输入436384042样例输出38数据规模和约定60%的数据满足:Nusingname
spaces
td;intmax_primefac
热血少年鸡小龙
·
2024-01-30 18:59
蓝桥杯之小白刷刷题
蓝桥杯
c++
职场和发展
第二题:A. Satisfying Constraints
#includeusingname
spaces
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!
#includeusingname
spaces
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
#includeusingname
spaces
td;voidsolve(){intn;cin>>n;vectorq;while(n--){intx;cin>>x;q.push_back(x);}intcnt
三冬四夏会不会有点漫长
·
2024-01-30 17:07
#
CF
div2
A题
算法
Android是如何识别USB信号的
Android是如何识别USB信号的https://blog.csdn.net/Wbl752134268/article/details/131973402https://i
spaces
oft.com/
chezabo6116
·
2024-01-30 16:33
android
ColorPicker的操作会影响Button按钮的样式,需注意~~~
ColorPicker的操作会将Button的样式修改,具体看下面的例子..例如:@name
spaces
"library://ns.adobe.com/flex/spark";@namespacemx"library
郎岳樟
·
2024-01-30 14:42
flex
button
library
application
function
import
c
【C++】——类和对象(中)
(intyear,intmonth,intday){_year=year;_month=month;_day=day;}voidPrint(){cout_year_month_dayusingname
spaces
td
_麦麦_
·
2024-01-30 14:01
c++
java
开发语言
模拟帝国类游戏(c++语言)(保证能运行)
直接上代码(游戏有的功能没做,还不能用):作者卑微申请:给个赞,再观看:#include#include#includeusingname
spaces
td;voidplayer_one(intend){
star-dusts
·
2024-01-30 14:28
c++
游戏
算法
P1012 [NOIP1998 提高组] 拼数题解
输出格式一个正整数,表示最大的整数输入输出样例输入样例313312343输出样例34331213代码#include#includeusingname
spaces
td;structnode{strings
互联网的猫
·
2024-01-30 13:09
贪心算法专题
排序算法专题
算法
c++
牛客周赛Round29补题
#include#includeusingname
spaces
td;longlonga,b;intmain(){cin>>a>>b;if(a==b)coutb)coutusingname
spaces
td
阳光彩虹小白马943
·
2024-01-30 12:08
算法
基于二叉链表的二叉树结点个数的统计
#include#includeusingname
spaces
td;typedefcharTElemType;#defineOK1typedefintStatus;typedefstructBiNode
点一下我的id
·
2024-01-30 10:11
C++ Qt中 类的构造函数 & 析构函数
test#includeusingname
spaces
td;classLine{public:Line();//这是构造函数voi
Cherry_keven
·
2024-01-30 09:04
C++
c++
C++入门【36-C++ 类构造函数 & 析构函数】
下面的实例有助于更好地理解构造函数的概念:实例#includeusingname
spaces
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#includeusingname
spaces
td
始归零
·
2024-01-30 09:06
图论
双指针算法
如果用一个双重循环来遍历:for(inti=0;iusingname
spaces
td;intmain(){chara[1001];gets(a);intlena=strlen(a);for(inti=0
啊丢_
·
2024-01-30 09:01
算法
数据结构
递归的经典例题
例题1:递归上楼梯#includeusingname
spaces
td;//设共有n级楼梯,某人每步可走1级也可以走2级。//问:求从底层开始走完全部楼梯得有多少种走法?
啊丢_
·
2024-01-30 09:31
c++
c++
算法
开发语言
深搜(DFS)与广搜(BFS)
输入:第一行是一个正整数N(2usingname
spaces
td;/*40000010110011102*///深搜,孙悟空在地图的左上角,师傅所在的地方为2,//有石头的地方为1,有路的地方为
啊丢_
·
2024-01-30 09:30
c++
深度优先
宽度优先
算法
数论与图论
数论筛质数最普通的筛法O(nlogn):voidget_primes2(){for(inti=2;iusingname
spaces
td;intn;boolisprime(longlonga){if(a=
啊丢_
·
2024-01-30 09:28
c++
图论
洛谷P1996 约瑟夫问题
输入输出样例输入103输出36927185104说明/提示1≤m,n≤100参考代码#include#includeusingname
spaces
td;in
我好弱啊啊
·
2024-01-30 08:52
洛谷
算法
C++冲鸭~【面向对象】
doublelength;//盒子长doublebreadth;//盒子宽doubleheight;//盒子高};对象定义Boxbox1;Boxbox2;访问数据成员示例:#includeusingname
spaces
td
漂泊老猫
·
2024-01-30 08:21
C++冲鸭~
c++
开发语言
信息学竞赛中的数学 习题集911-920(10题)
第2集|C++小学组20203模拟测评题——2、积善成德https://www.douyin.com/video/7305241928356859173登录#includeusingname
spaces
td
dllglvzhenfeng
·
2024-01-30 08:17
程序猿的数学
创新
计算机考研机试
算法
信息学竞赛中的数学
信奥中的数学
程序员的数学
GESP
CSP-J
NOIP
c++学习记录 多态—案例2—电脑组装
#includeusingname
spaces
td;//抽象不同的零件//抽象的cpu类classCpu{public://抽象的计算函数virtualvoidcalculate()=0;};//抽象的显卡类
泰泰的碳尼
·
2024-01-30 07:57
学习
c++
开发语言
数论 | 质数
文章目录质数的判定:试除法分解质因数:试除法筛质数朴素做法优化:埃氏筛法优化:线性筛法质数的判定:试除法不推荐i*iusingname
spaces
td;intn;boolisPrime(intn){if
一根老麻花
·
2024-01-30 06:18
手撕算法
算法
c++
数据结构
数论
质数
java后缀表达式用栈_【数据结构】用栈实现对后缀表达式的计算
VS2008基本就不支持C++11新的特性;我们用后缀表达式,利用数据结构中的栈,进行结果的计算如果是操作数,则压栈如果是操作符,则出栈两个元素,根据操作符进行计算之后再压栈#includeusingname
spaces
td
叽咕叽咕咕咕咕
·
2024-01-30 06:53
java后缀表达式用栈
【数据结构】 二叉搜索树的模拟实现——完整代码
BSTree.h#define_CRT_SECURE_NO_WARNINGS1#pragmaonce#include#includeusingname
spaces
td;namesp
ly_1115
·
2024-01-30 06:47
数据结构的模拟实现
二叉搜索树
完整代码
成员函数
【C++】顺序栈实现后缀表达式计算
输入样例:1123+*#输出样例:55//顺序栈实现后缀表达式计算//author:Mitchell//data:3.16#includeusingname
spaces
td;classstack{private
Mitch311
·
2024-01-30 06:16
数据结构
算法
数据结构
c++
stack
栈
上一页
56
57
58
59
60
61
62
63
下一页
按字母分类:
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
其他