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
1091【基础】走迷宫
#includeusingname
spaces
td;intn,maxn,b[41][41];chara[41][41];voidzmg(intx,inty,ints){if(s>b[x][y])b[x]
以轻武烈
·
2023-12-29 06:45
算法
c++
数据结构
第 1 场 算法季度赛 蓝桥&搜狐畅游(1~5 , 7)
1、水题2、树上dp3、模拟4、概率5、拆位6、(是没学过的东西了...)7、组合数学1.新年快乐【算法赛】直接模拟#includeusingname
spaces
td;intmain(){coutusingname
spaces
td
你怎么知道我有一块铜牌
·
2023-12-29 06:15
算法
蓝桥杯
计算(a+b)*c的值
(-10000usingname
spaces
td;intmain(){inta,b,c;cin>>a>>b>>c;coutusingname
spaces
td;intmain(){inta,b,c,s=0
以轻武烈
·
2023-12-29 06:15
c语言
算法
开发语言
1075:【入门】求零件个数
输入:无输出样例输入输出输入输出#includeusingname
spaces
td;intmain(){inti;;for(i=100;i<=999;i++){if(i%3==2&&i%5==3&&i%
以轻武烈
·
2023-12-29 06:15
算法
c++
数据结构
C++ 学习之多态案例三 - 电脑组装
并且提供不同的厂商生产不同的零件,例如Intel厂商和Lenovo厂商创建电脑类提供让电脑工作的函数,并且调用每个零件工作的接口测试时组装三台不同的电脑进行工作案例分析:代码实现:#include#includeusingname
spaces
td
无聊的阿乐
·
2023-12-29 06:44
C++
#
C++综合小项目
c++
多态案例 -- 电脑组装
#includeusingname
spaces
td;//抽象不同零件类//抽象CPU类classCPU{public://抽象的
@小棋童
·
2023-12-29 06:13
服务器
c++
开发语言
c++学习之多态案例--电脑组装
代码示例#includeusingname
spaces
td;#include/*********************器件基类,不用作什么事,让子类派生重写**********************
<( ̄︶ ̄)Okay.
·
2023-12-29 06:43
c++
c++多态案例---组装电脑
这是代码结构图:#include#includeusingname
spaces
td;//抽象CPU类//抽象显卡类//抽象内存条类//电脑类//
小明同学600
·
2023-12-29 06:09
c++
电脑
开发语言
4.7.6 多态案例3--电脑组装
并且提供不同的厂商生产不同的零件,创建电脑类提供让电脑工作的函数,并且调用每个零件工作的接口测试时组装三台不同的电脑进行工作示例#include#include#include#includeusingname
spaces
td
才文嘉
·
2023-12-29 06:07
C++学习记录
c++
学习笔记 | 多态案例3-电脑组装
示例:#includeusingname
spaces
td;//抽象CPU类classCPU{public:
大虎牙
·
2023-12-29 06:36
#
C++语言
多态
使用c语言实现DH秘钥分配算法
使用c语言实现DH秘钥分配算法DH算法原理密钥分配选择一个大素数p,选择一个整数g(g#include#include#includeusingname
spaces
td;#defineSUBKEY_LENGTH78
不负长风
·
2023-12-29 06:36
c
c语言
C++——多态案例三-电脑组装
#includeusingname
spaces
td;//抽象不同零件类//抽象CPU类classCPU{public://抽象的计算函数virtualvoidcalculate()=0;};//抽象显卡类
双余人
·
2023-12-29 06:05
c++
4.7.6 多态案例三—电脑组装
#include#includeusingname
spaces
td;//抽象出不同的零件//抽象CPU类classCPU{public://抽象出计算函数virtualvoidcalculate()=0
酱紫喔
·
2023-12-29 06:05
c++
开发语言
多态案例--组装电脑
3.代码实现#includeusingname
spaces
td;classCPU{public:virtualvoidcpuWork()=0;};classGPU{public:vir
所念非欢
·
2023-12-29 06:34
c++
算法
开发语言
4.7.6 多态案例三-电脑组装
#includeusingname
spaces
td;//抽象不同零件类//抽象CPu类classCpu{//抽象计算函数virtualvoidCalculator()=0;};//抽象显卡类classVideaCard
CRTers-DADA
·
2023-12-29 06:04
c++
蓝桥杯
开发语言
C++多态案例--电脑组装
创建电脑类提供让电脑工作的函数,并调用每个零件工作的接口测试时组装三台不同的电脑#includeusingname
spaces
td;classCPU{public://有纯虚函数,CPU类为抽象类virtualvoidcalculate
linan_520
·
2023-12-29 06:33
c++
开发语言
多态案例三-电脑组装
将每个零件封装出抽象基类,并且提供不同的厂商不同的零件,例如Intel厂商和Lenovo厂商创建电脑类提供让电脑工作的函数,并且调用每个零件工作的接口测试时组装三台不同的电脑进行工作示例:#includeusingname
spaces
td
天天@写代码
·
2023-12-29 06:57
电脑
c++
开发语言
使用C语言实现多线程DES算法、CPC密码和vigenere算法
();voidVegeSurface();voidCPCSurface();voidDESSurface();UI.cpp#include#include#include"UI.h"usingname
spaces
td
不负长风
·
2023-12-29 06:25
c
c语言
密码学
[动态规划]天平
臂上有一些挂钩,Gigel想要从他拥有的G个重物中(1usingname
spaces
td;intC,G,hook[25],weight[25],ans=0,count=0;voiddfs(intk){if
StudyingPanda
·
2023-12-29 06:00
动态规划
算法
C++(11):获得时间戳及时间
通过chrono获得系统的时间戳:#include#includeusingname
spaces
td;unsignedlonggetTimestamp(){returnchrono::system_clock
风静如云
·
2023-12-29 05:10
C/C++
c++
c++ / day02
1.把课上strcut的练习,尝试着改成class代码#includeusingname
spaces
td;classStu{private:intage;chargender;intheight;public
溪北人
·
2023-12-29 04:09
c++
开发语言
c++ / day01
代码#includeusingname
spaces
td;namespacemyns{unsignedlonglongstrlen(strings){returns.length();}}intmain(
溪北人
·
2023-12-29 04:39
c++
开发语言
c++ / day03
代码#includeusingname
spaces
td;classPerson{int*_ptr_age;string&_ref_name;public://P
溪北人
·
2023-12-29 04:07
c++
开发语言
C++day1
作业:定义自己的命名空间,并在命名空间中定义一个字符串,实现求字符串大小的函数#include#includeusingname
spaces
td;namespacemyspace{stringstr;intxxx
zdy_cl
·
2023-12-29 03:21
c++
C++day2
作业:把课上strcut的练习,尝试着改成class#includeusingname
spaces
td;classStu{private:intage;stringsex;floathigh;doublescore
zdy_cl
·
2023-12-29 03:21
c++
C++day3
#includeusingname
spaces
td;classPerson{int*age;string&name;public:Person(intage,
zdy_cl
·
2023-12-29 03:43
c++
开发语言
算法
Kruskal(克鲁斯卡尔)算法总结
算法求最小生成树859.Kruskal算法求最小生成树-AcWing题库https://www.acwing.com/problem/content/861/代码#include#includeusingname
spaces
td
ykycode
·
2023-12-29 02:25
经典算法总结
图论
算法
克鲁斯卡尔算法
Kruskal算法
最小生成树
图论
【转】从博弈论视角审视网络安全态势感知
随着网络的兴起而升级为“网络态势感知(Cyber
spaceS
ituationAwareness,CSA)”,旨在大规模网络环境中对能够引起网络态势发生变化的安全要素进行获取、理解、显示以及最近发展趋势的顺延性预测
xian_wwq
·
2023-12-29 01:07
web安全
网络
安全
湿货 - 231206 - 关于如何构造输入输出数据并读写至文件中
TAG-造数据、读写文件造数据、读写文件造数据、读写文件//*.in//#includeusingname
spaces
td;/***********************全局*************
乐意奥AI
·
2023-12-29 01:01
湿货
知识图谱
每日一题 - 231130 - F - Colored Ball
F-ColoredBallTAG-set、启发式合并set、启发式合并set、启发式合并时间复杂度-O(N∗logN)O(N\astlogN)O(N∗logN)//#includeusingname
spaces
td
乐意奥AI
·
2023-12-29 01:30
ACM
算法
每日一题 - 231201 - Divisibility by Eight
DivisibilitybyEightTAG-整除特性、枚举整除特性、枚举整除特性、枚举时间复杂度-O(N3)O(N^3)O(N3)//#includeusingname
spaces
td;//#defineintlonglongvoidsolve
乐意奥AI
·
2023-12-29 01:30
ACM
算法
每日一题 - 231201 - G. Hard Brackets Problem
G.HardBracketsProblemTAG-思维(增量)思维(增量)思维(增量)时间复杂度-O(T∗N)O(T\astN)O(T∗N)//#includeusingname
spaces
td;//#
乐意奥AI
·
2023-12-29 01:30
ACM
算法
C++判断用数组存放的树是不是二叉排序树(可直接运行)
#include#includeusingname
spaces
td;boolisBST(constinta[],intindex,intminVal,intmaxVal,intn){if(index>=
严定洲
·
2023-12-29 00:48
c++
算法
数据结构
C++面向对象-拷贝构造
#includeusingname
spaces
td;classCar{intm_price;public:Car(intprice=0):m_price(price){coutusingname
spaces
td
码无不至
·
2023-12-28 23:35
springboot优化JVM参数
1:在idea中配置1.1:参数-XX:Meta
spaceS
ize=128m-XX:MaxMeta
spaceS
ize=128m-Xms1024m-Xmx1024m-Xmn256m-Xss256k-XX:
一户董
·
2023-12-28 23:55
springboot
java
spring
boot
postman使用-02workspace
workspace选择blanworkspace->next按照提示填写并创建3.删除选择要删除的workspace(比如我要删除teamworkspace),双击选择选择overview->双击work
spaces
ettings
简丹**
·
2023-12-28 23:15
postman
postman
c++ day3
代码实现:#includeusingname
spaces
td;classPerson{int*age;string&name;public:Person(int
IT技术电坤小新
·
2023-12-28 23:16
c++
开发语言
c++ day2
1.class类练习代码实现:#includeusingname
spaces
td;classStudent{private:intage;stringsex;inttall;public:doublescore
IT技术电坤小新
·
2023-12-28 23:44
c++
AtCoder Beginner Contest 334 A~F
代码:#includeusingname
spaces
td;typedeflonglongLL;constintN=2e5+5e2;voidsolve(){intB,G;cin>>B>>G;if(B>G)
AC-Panda
·
2023-12-28 22:10
AtCoder
算法
AtCoder
信息学奥林匹克
ACM-ICPC
OI
木材加工 --二分答案
1cm1cm1cm都凑不出来的情况,r由1变为0r由1变为0r由1变为0,这个时候如果在进入checkcheckcheck函数,a[i]/0a[i]/0a[i]/0就会炸Code:#includeusingname
spaces
td
小元勋
·
2023-12-28 22:07
二分答案
二分答案
P2440 木材加工(二分)
代码:#include#includeusingname
spaces
td;#definelllonglongconstintmaxn=1e5+10;inta[maxn],n,maxx,ans;llc,mid
1.01
·
2023-12-28 22:37
LeetCode
二进制转十进制
#includeusingname
spaces
td;intmain(){intr=0,c=1;stringstr;getline(cin,str);for(inti=str.length()-1;i>
瓜大小王子
·
2023-12-28 22:23
二分——木材加工
原文链接:https://www.luogu.com.cn/problem/P2440AC代码:#include#include#include#includeusingname
spaces
td;#definelllonglonglln
shuaishuai-zhang
·
2023-12-28 22:05
二分
木材加工(二分答案)
#includeusingname
spaces
td;typedeflonglongll;inta[100001];intn,m;llcheck(intn)
谳情
·
2023-12-28 22:03
算法
c++
银行利率(二分)
月的利率是多少思路先算每个月要还的钱和剩下需要还的钱用二分来算利率判断经过x月以后,剩余要还的钱是否等于0(或者是l和r相差小于0.0001),来找最合适的mid也就是利率;坑点钱还多了,说明利率比较小,要让mid增大代码#include#includeusingname
spaces
td
CocowhoLynn
·
2023-12-28 22:29
算法
秋招笔试-网易秋招unity笔试算法题-3
每个测试用例的第一行包含一个正整数,表示闹钟的数量N(N#include#include#includeusingname
spaces
td;intmain(){intn;cin>>n;i
Buyun0
·
2023-12-28 22:37
C++ DAY2作业
1.课堂struct练习,用class;#includeusingname
spaces
td;classStu{private:intage;charsex;inthigh;public:doublescore
忆相逢cz
·
2023-12-28 22:08
c++
算法
开发语言
C++ DAY3 作业
#includeusingname
spaces
td;classPerson{int*age;string&name;//存在引用成员public://构造函数P
忆相逢cz
·
2023-12-28 22:08
c++
开发语言
算法
C++ DAY1 作业
1.定义自己的命名空间myspace,并在myspace中定义一个字符串,并实现求字符串长度#includeusingname
spaces
td;namespacemyspace{stringstr;intlength_fun
忆相逢cz
·
2023-12-28 22:05
c++
算法
数据结构
【洛谷】单词翻转
单词翻转题目链接题意输出翻转后的句子思路定义输入一个字符串在for循环中定义i的值为字符串长度减一,后在for循环中输出字符串最后输出结果即可实现步骤同思路代码#includeusingname
spaces
td
美丽绝育大蟑螂
·
2023-12-28 21:30
算法
c++
上一页
94
95
96
97
98
99
100
101
下一页
按字母分类:
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
其他