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
二维数组——综合问题2(c++)
#include#includeusingname
spaces
td;intmain(){doublex,y,ab,mj;doublea[110][4];cin>>x>>y;ab=x/y;mj=x*y;intn
mmz1207
·
2024-01-09 01:12
c++
C#实现数组的冒泡排序--注意数组的定义哦-。-
输入在控制台中输入数字,存入一维数组输出输出排序后的数组样例输入87858984768290797868样例输出68767879828485878990usingSystem;name
spaces
hiyan1
菇凉小伙
·
2024-01-08 22:28
C#简单入门
c#
C++ day6
目录思维导图整理课上vector的代码利用模板类完成顺序表思维导图整理课上vector的代码#include#includeusingname
spaces
td;intmain(){vectorv1;vectorv2
腾飞810
·
2024-01-08 22:43
c++
开发语言
C++for循环输出4*5矩阵
#includeusingname
spaces
td;intmain(){inti,j,a;for(i=1;i<=4;i++){for(j=1;j<=5;j++){a=i*j;cout<
菜鸡小陈
·
2024-01-08 21:19
笔记
c++
如何使用C++实现10个数的冒泡排序
简称“大数沉淀,小数起泡”以此类推,iusingname
spaces
td;intmain(){inta[10];inti,j,t;cout>a[i];/*输入10个整数*/}for(j=0;ja[i+1
菜鸡小陈
·
2024-01-08 21:18
笔记
排序算法
c++
在一维数组中添加一个整数并排列(数组从小到大排列)
首先应该想到将这个数插入后应该怎么比较,首先要看原数组的排序情况,如果原数组从小到大排序如:a[10]={15,19,25,46,47,56,58,78,79,90}则代码如下:#includeusingname
spaces
td
菜鸡小陈
·
2024-01-08 21:18
数组
笔记
c++
排序算法
C++ 对象模型 | 关于对象
例如:下面定义一个Point类,包含前面四种类型的成员#includeusingname
spaces
td;classPoint{public:Point(
MessiGo
·
2024-01-08 21:44
C++
对象模型
c++
java
开发语言
C++ 函数对象
例如:定义Plus类,并重载()运算符#includeusingname
spaces
td;classPlus{private:doubley;public:Plus():y(0){}Plus(doubley
MessiGo
·
2024-01-08 21:14
C++
编程基础
c++
java
算法
ROS下使用串口发送数据
include#include#include#include#include//数据格式#include//ros串口#include#include#include#includeusingname
spaces
td
CoolLoveBoy
·
2024-01-08 21:32
ubuntu
ROS
串口通信
【东华大学oj】19 统计字符串个数(面向对象)
19统计字符串个数#include#include#includeusingname
spaces
td;classMyString{private:char*str;staticintcount;public
ixll625
·
2024-01-08 19:40
东华oj
c++
算法
开发语言
【东华大学oj】28 发工资(面向对象)
#include#include#includeusingname
spaces
td;//基类Employeeclassemployee{protected:stringname;stringrole;doublesalary
ixll625
·
2024-01-08 19:10
东华oj
算法
java
数据结构
poj.org部分题目(五)
a:busingname
spaces
td;constintN=110;constintM=220;constdoubleMax=0x3f3f3f3f;structnode
wniuniu_
·
2024-01-08 19:49
算法
算法
数组-斐波那契数列
斐波那契数列是1,1,2,3,5,8,13,21,34,...数列#include#includeusingname
spaces
td;intmain(){inti;intf[20]={1,1};for(
这么帅的人啊
·
2024-01-08 19:12
C++ 求一个数是否是丑数。
#include#includeusingname
spaces
td;intisChou(intnum){if(num#includeusingname
spaces
td;intisChou(intnum)
laocooon523857886
·
2024-01-08 18:51
c++
算法
数据结构
Oracle imp导入数据指定表空间
通过IMP命令参数table
spaces
指定表空间是不行的,其他复杂方法要修改配额什么的,麻烦。
胖玻璃球就一个
·
2024-01-08 17:24
oracle
user
sql
file
database
脚本
C++ 二元一次方程组算法
程序代码:#includeusingname
spaces
td;intmain(){floatx;floaty;floatnum1x;floatnum1y;floatsum1;floatsum2;floatx2
大神的风范
·
2024-01-08 17:23
算法
c++
openjudge 1.5.12 与指定数字相同的数的个数
由题可知,一共有n个数,要求这n个数中与m相同的数的个数,那么可以设置一个计数器初始化为02.利用循环一共读入n个数,每次输入数都和m比较,如果相等计数器增加3.输出计数器#includeusingname
spaces
td
信息学奥赛-Mr-H
·
2024-01-08 16:12
信息学奥赛-循环结构
c++
算法
蓝桥杯
与指定相同数字相同的数的个数
OpenJudge-01:与指定数字相同的数的个数解题思路:1.创建变量,数组并输入2.将数依次输入数组3.将数组的第n个数与指定数判断,如果相同,累加器加一#includeusingname
spaces
td
郑延泽
·
2024-01-08 16:12
一维数组
c++
c++
与指定数字相同的数的个数2
输入格式输入包含三行:第一行为N,表示整数序列的长度(Nusingname
spaces
td;intmain(){intn,m,a[105],s=0;cin>>n;for(inti=1;i>
q27_56zqlove
·
2024-01-08 16:40
c++
1102:与指定数字相同的数的个数
【输入样例】32322【输出样例】2【代码】#includeusingname
spaces
td;intmain(){inti;intn,
longxuan01
·
2024-01-08 16:37
算法
数据结构
与指定数字相同数的个数 c++
今天我们来看这道题与指定数字相同数的个数c++首先我们直接看代码#includeusingname
spaces
td;intmain(){inta[100],sum=0,n;cin>>n;for
小张同学是老六
·
2024-01-08 16:35
c++
算法
数据结构
[蓝桥杯学习] ST表
问题ST表用状态s[i][j]记录区间长度为2^j的长度的区间的最大值所以状态转移方程就是st[i][j]=max(st[i][j-1],st[i+(1#include#includeusingname
spaces
td
Waldeinsamkeit41
·
2024-01-08 13:53
蓝桥杯
学习
C语言-蓝桥杯2022年第十三届省赛真题-质因数个数
#include#includeusingname
spaces
td;boolsort(lon
代码传奇
·
2024-01-08 13:48
C语言题目
c语言
蓝桥杯
算法
Codeforces Round 761 (Div. 2) E. Christmas Chocolates(思维题 树的直径 二进制性质 lca)
并且存在一个最小步数输出你选择的位置(x,y),使得a[x]变到a[y]的最小步数最大,并且输出最大的步数思路来源官方题解题解两年前补的题,当时ac了但是没写题解,今天写一下注意到,如果令i+j=,并且jj(jusingname
spaces
td
Code92007
·
2024-01-08 13:31
树
思维题
树的直径
lca
二进制性质
Codeforces Round 916 (Div. 3) G2. Light Bulbs (Hard Version)(思维题 随机化哈希)
题目2n(2//#include//#include//#includeusingname
spaces
td;#definerep(i,a,b)for(inti=(a);i=(b);--i)typedeflonglongll
Code92007
·
2024-01-08 13:31
思维题
#
哈希
思维题
随机化哈希
Codeforces Round 761 (Div. 2) D2. Too Many Impostors (hard version)(交互+构造 最小次数)
题目n(6usingname
spaces
td;constintN=1e4+10;intT,n;inthao,huai,res[N];vectorans;intone,two,a[7],b[5];intask
Code92007
·
2024-01-08 13:30
交互
构造
乱搞AC
交互
构造
最小次数
Educational Codeforces Round 160 (Rated for Div. 2) D. Array Collapse(单调栈+dp)
题目给定一个长为n(n#include//#include//#includeusingname
spaces
td;#definerep(i,a,b)for(inti=(a);i=(b);--i)typedeflonglongll
Code92007
·
2024-01-08 13:58
#
dp优化
#
基础dp
单调栈
L1-042 日期格式化
三、代码方法一(scanf):#includeusingname
spaces
td;intmain(){intyear,month,day;scanf("%d-%d-%d",&month,&day,&y
still&
·
2024-01-08 13:45
c++
L1-018 大笨钟
方法二:同方法一;当不在敲钟期时(h>=0&&husingname
spaces
td;intmain()
still&
·
2024-01-08 13:45
c++
L1-028 判断素数
三、代码#includeusingname
spaces
td;#include//函数的声明boolprime(intx);intmain(){intn;cin>>n;while(n--){intx;cin
still&
·
2024-01-08 13:45
c++
L1-024 后天
三、代码方法一:#includeusingname
spaces
td;intmain(){intday;cin>>day;if((day+
still&
·
2024-01-08 13:15
c++
L1-007 念数字
三、代码#includeusingname
spaces
td;in
still&
·
2024-01-08 13:12
c++
全网最简单 关于C盘扩容的方法(docker镜像文件过大需要迁移也可以看这里!)
下载
spaces
niffer找到占空间比较大的文件夹,将文件夹剪切到其他盘创建软连接,相当于一个快捷方式以管理员身份,运行命令行,输入命令mklink/d源文件夾路径(c盘里的)新文件夹路径tips:1
ou.cs
·
2024-01-08 12:57
各种常见问题
windows
程序人生
新手练习项目 5:简易计算器(C++)
效果图二、代码(带注释)三、说明一、效果图二、代码(带注释)//创作者:Code_流苏(CSDN)//未经允许,禁止转载发布,可自己学习使用#include#include#includeusingname
spaces
td
Code_流苏
·
2024-01-08 12:19
各类课设与项目
c++
linux
计算器
composer 自动加载原理分析
生成一个vender目录,结构如下|vender--|composer----|autoload_classmap.php----|autoload_files.php----|autoload_name
spaces
.php
sorry510
·
2024-01-08 11:53
最短路dijkstra
usingname
spaces
td;constintINF=INT_MAX;//结构体node,有自己的坐标,还有一个距离?
Colinnian
·
2024-01-08 09:52
算法
最短路
AcWing 998. 起床困难综合症
AND表示按位与,OR表示按位或,XOR表示按位异或AcceptedCode:#include#include#includeusingname
spaces
td;constintN
青春pig头少年
·
2024-01-08 08:25
AADS
算法
c++
数据结构
【C++】构造-析构详解
#includeusingname
spaces
td;classObject{public://explicit
code-016
·
2024-01-08 07:47
C++
c++
构造
析构
C++-构造与解析
#includeusingname
spaces
td;classstudent{private:stringm_name;intm_age;intm_num;public:student(conststring
小辰017
·
2024-01-08 07:38
c++
开发语言
信息学奥赛一本通1037:计算2的幂
0≤nusingname
spaces
td;intmain(){longlongn,a;cin>>n;a=pow(2,n);cout<<a;return0;}
ptyz306
·
2024-01-08 06:35
算法
c++
C++_菱形继承(虚继承)
虚继承菱形继承介绍菱形继承源码菱形继承运行结果虚继承介绍虚继承源码虚继承运行结果菱形继承介绍本文主要介绍菱形继承基本操作(仅附源码and运行结果)1.正常菱形继承会产生在孙子类中产生两个不同的基类菱形继承逻辑图菱形继承源码#include#includeusingname
spaces
td
一航ciao
·
2024-01-08 05:53
C++学习参考
c++
笔记
学习
C++_命令行操作
exe可执行文件第三步看图操作代码测试源码测试结果介绍本文介绍命令行操作1.argc表示当前输入参数个数2.argv表示当前输入字符串内容第一步编译源码#include#includeusingname
spaces
td
一航ciao
·
2024-01-08 05:53
C++学习参考
c++
学习
笔记
(第16题)构造哈夫曼树(难度系数85)
输入:第一行为叶子结点的数目n(1usingname
spaces
td;constintN=1010;intw[N];intl[N],r[N],fa[N];inta[N],cnt;intidx=1;//编号
爱吃卤鸭腿
·
2024-01-08 05:49
算法
c++
数据结构
(第5题)希尔排序(难度系数85)
输入第一行为元素个数n(1usingname
spaces
td;constintN=2010;inta[N],b[N];intn;voidshellsort(intt){for(inti=t;i=0&&temp
爱吃卤鸭腿
·
2024-01-08 05:19
算法
数据结构
c++
质数
目录试除法判定质数分解质因数筛质数试除法判定质数题目如下:质数的定义:在大于1的自然数中,除了1和它本身以外不再有其他因数暴力的做法boolis_prime(intn){if(n#includeusingname
spaces
td
貌美不及玲珑心,贤妻扶我青云志
·
2024-01-08 04:41
ACM日记
算法
DAY8 字符串(二)反转字符串Ⅱ+反转字符串里的单词,反转单词的逻辑要特别注意
`i+=2k`的循环过程`if((i+k)usingname
spaces
td;intmain(){inti=0;intj=0;if(i==0||++j==1)//i==0istrue,so++j==1isnotevaluated
大磕学家ZYX
·
2024-01-08 03:52
刷题记录
c++
开发语言
冒泡排序法
输入有两行第一行有一个整数n(5usingname
spaces
td;intmain(){inta[110];intn;cin>>n;for(inti=0;i>a[i];}for(inti=0;ia[j+
芃芃(小李同学)
·
2024-01-08 03:09
算法
c++
数据结构
基础-循环输出
#includeusingname
spaces
td;intmain(){f
芃芃(小李同学)
·
2024-01-08 03:39
算法
c++
开发语言
12月2日作业
数组元素的删除题目描述把一个数组的第x个位置的元素删除掉输入有三行第一行有一个整数n(nusingname
spaces
td;intmain(){inta[100];intn;cin>>n;for(inti
芃芃(小李同学)
·
2024-01-08 03:39
算法
c++
数据结构
C++编程作业-----整数运算
分别代表总共采购的跳绳数量以及每个班级分到的跳绳数量输出两个整数,用空格隔开,第一个整数代表可以分到的班级的数量,第二个整数代表剩余的跳绳数量样例输入复制10030输出复制310#includeusingname
spaces
td
芃芃(小李同学)
·
2024-01-08 03:08
c++
算法
c语言
上一页
82
83
84
85
86
87
88
89
下一页
按字母分类:
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
其他