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
ABC338(A-C)
A#includeusing
namespaces
td;intmain(){strings;cin>>s;intl=s.length();if(s[0]'Z'){cout'z'){coutusing
namespaces
td
pboaths
·
2024-01-31 17:11
c语言
算法
c++
牛客练习赛111 A—D
A明显的进位的就是遍历最低位我们只需要从最后面开始往前走找到不是0的就可以了,统计0的个数然,找到不是0的直接用10-去这个数就可以了//数学公式要变形//莫急莫急先读题#includeusing
namespaces
td
梦念小袁
·
2024-01-31 17:59
c++
开发语言
程序控制结构2022-11-01
案例显示#include#includeusing
namespaces
td;typedefenum{SUN,MON,THE,WED,THU,FRI,SAT}WEEKDAY;intmain(){intdate
Love_Forever
·
2024-01-31 16:00
三目运算与三目赋值运算的介绍
下面通过一个小程序对三目运算和三目赋值运算进行演示介绍:#includeusing
namespaces
td;intmain(){inta,b,c;//三目运算cout<<"\n三目运算公式c=(a
LaoWaiHang
·
2024-01-31 16:10
代码
c++
C++ easyX小程序:画五角星
//代码及注释如下:#include#include#includeusing
namespaces
td;voidFiveStar(int
LaoWaiHang
·
2024-01-31 15:38
c++
小程序
C++ Primer Plus(第6版)第二章 开始学习 C++
2.1进入C++一个简单的入门程序如下://mytirst.cpp--displaysamessage#includeintmain(){using
namespaces
td;coutintmain(){
HongChengDarren
·
2024-01-31 14:44
c++
学习
java
docker入门问题之六
容器隔离:利用Linux内核的命名空间(
Namespaces
)和控制组(Cgroups)功能来隔离容器进程和资源。避免在宿主机上运行特权容器(使
琛哥的程序
·
2024-01-31 14:22
docker
CodeFoeces-702A
代码#includeusing
namespaces
td;intmain(){intn,s[100000];scanf("%d",&n);for(inti=0;i
ss5smi
·
2024-01-31 13:56
牛客练习赛113
思路:由题意观察可以知道,当n等于3时,最小的直径就是1,而当n大于等于4时,直径等于2.代码:#includeusing
namespaces
td;intm
温存~
·
2024-01-31 12:17
算法
递归计算1+2+3+…+n(C++)
输入0时,和为0.样例1输入:10样例1输出:55代码如下#includeusing
namespaces
td;intRES(intn){if(n==1)return1;if(n==0)return0;if
重剑DS
·
2024-01-31 12:40
递归的使用-综合
PTA/MOOC类题
(C语言/C++)
#
MOOC类
c++
递归法
C# 设计模式 策略模式
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;
namespaceS
trategy
廷益--飞鸟
·
2024-01-31 12:25
C#
策略模式
c#
设计模式
C++ 内嵌对象的默认构造与有参构造
如下#includeusing
namespaces
td;//A类classA{public:A(){coutusing
namespaces
td;classA{public:A()=delete;//A(
我叫两万块
·
2024-01-31 12:21
c++
visual
studio
多线程c++
原子操作4.条件变量condition_variable5.future和promise1.join和detach区别①不使用join和detach#include#include#includeusing
namespaces
td
雨幕丶
·
2024-01-31 11:54
c++和数据结构
c++
二分查找(c++题解)
如果找到x,则返回x在数组中的位置如果没有找到,则返回-1输入格式第1行:1个整数N(1using
namespaces
td;longlonga[10000005],n,mid,m;intmain(){cin
hb_zhyu
·
2024-01-31 11:50
c++
算法
数据结构
docker-学习-2
docker学习第二天docker学习第二天1.docker和虚拟机的区别2.docker的底层隔离机制2.1
Namespaces
(命名空间)2.1.1什么是命名空间2.2Cgroups2.3Unionfilesystems2.4Containerformat2.5docker
不冤不乐
·
2024-01-31 10:36
docker学习
docker
学习
容器
ACM题解Day2|1.台风, 2.式神考试,3.DNA,4.方程求解
:*☆Github今日打卡ACM题解学习内容:1.台风题目代码#includeusing
namespaces
td;intmain(){inta[100];intcount=0;//41intall=0;
27dCnc
·
2024-01-31 10:21
数据结构与算法
C/C++语言刷题
算法
c++
笔记
数据结构
算法.kmp
#includeusing
namespaces
td;constintN=10010,M=100010;intn,m,ne[N];charp[N],s[M];intmain(){cin>>n>>p+1>>
丰海洋
·
2024-01-31 09:28
算法
c++
java
数据结构.队列的链式实现&&双端队列
一、初始化#includeusing
namespaces
td;typedefstructLinkNode{intdata;LinkNode*next;}LinkNode;typedefstruct{LinkNode
丰海洋
·
2024-01-31 09:56
数据结构
打卡:AcWing学习记录2.0
附代码#includeusing
namespaces
td;voidturn(string&s,inti){if(s[i]=='*')s[i]='o';elses[i
纯白色的手链
·
2024-01-31 08:54
AcWing
算法
CCF-CSP——因子化简
一、题目计算机软件能力认证考试系统二、题解#includeusing
namespaces
td;//判断素数intisPrime(intx){for(inti=2;i*i=k){while(num--){
飞影铠甲
·
2024-01-31 08:59
ccf
算法
PTA 7-38 数列求和-加强版
3006largenumbers,大数加法特判要写return0;别让他做剩下的操作#include#include#include#include#includetypedeflonglongll;using
namespaces
td
smatrcHendsa
·
2024-01-31 06:01
单链表的创建和删除(带头节点
#includeusing
namespaces
td;inta;typedefstructNode{intdata;//数据域Node*next;//指针域}Node;typedefNode*List;/
墨染枫
·
2024-01-31 06:16
算法
c++
c语言
数据结构
约瑟夫环问题,单循环链表C++解答
#includeusing
namespaces
td;typedefstructLNode{intdata;structLNode*next;}LNode,*LinkList;voidCreate(LinkList
四号少年
·
2024-01-31 03:06
约瑟夫问题
单循环链表
数据结构
寒假2 蓝桥杯-二分
#includeusing
namespaces
td;#includeintn;intarr[100010];intf_left(intq){inta=-1;intleft=1,right=n;intmid
要成为编程高手的Yu
·
2024-01-31 02:47
蓝桥杯
算法
数据结构
蓝桥杯训练1
1找哪个深度的节点权值最大暴力#includeusing
namespaces
td;intmain(){intn;cin>>n;inta[111];for(inti=1;i>a[i];intM=0;intt
武理杜兰特
·
2024-01-31 02:16
寒假1 蓝桥杯-递推递归
#include#includeusing
namespaces
td;intf(intn){if(n==1)return1;if(n==2)return1;returnf(n-1)+f(n-2);}intmain
要成为编程高手的Yu
·
2024-01-31 02:15
蓝桥杯
职场和发展
POJ(3104)(Drying)
代码:#include#includeusing
namespaces
td;
kimoyami
·
2024-01-31 02:19
蓝桥杯--算法提高 最大乘积(DFS)
#include#include#includeusing
namespaces
td;constintmaxn=20;intn,m;inta[maxn],b[maxn],used[maxn];intans
exmy
·
2024-01-31 02:08
搜索
搜索--DFS
蓝桥杯
蓝桥杯
dfs
easy
基础算法-差分-一维数组
N个气球排成一排,从左到右依次编号为1,2,3…N.每次给定2个整数ab(ausing
namespaces
td;constintN=10010;inta[N],d[N];voidsolve(){intn
可以输出hello了
·
2024-01-31 02:37
算法
c++
数据结构
洛谷C++简单题小练习day8—Bookshelf B
书架的高度为B,并且保证1≤B≤Susing
namespaces
td;in
小杨想赢一次
·
2024-01-31 01:35
蓝桥备战冲!
c++
开发语言
数据结构
算法
学习
1.25 C++ day2
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()代码:#includeusing
namespaces
td
⠀
·
2024-01-31 01:32
c++
开发语言
1.26 C++ day3
代码#includeusing
namespaces
td;classPer//封装一个Per类{private://表示私有属性stringname;//成员:姓名intage;//成员:年龄int*heigh
⠀
·
2024-01-31 01:32
c++
开发语言
1.24 C++ day1
思维导图试编程提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数,要求使用C++风格字符串完成#includeusing
namespaces
td;intmain()
⠀
·
2024-01-31 01:01
c++
算法
数据结构
1.30 C++ day4
思维导图构造函数、析构函数、拷贝构造函数、拷贝赋值函数代码#includeusing
namespaces
td;classStu//封装一个学生类{private://私有属性stringname;intid
⠀
·
2024-01-31 01:30
c++
开发语言
【C++】string类的模拟实现
#include#includeusing
namespaces
td;namespacejxh{classstring{public:/*string(constchar*str=""):_str(newchar
嘛弄
·
2024-01-30 23:10
c++
算法
string
模拟实现
2021:【例4.6】最大公约数 信息学奥赛一本通(C++版)
【输入样例】46【输出样例】2【提示】【数据范围】对于全部数据:m,nusing
namespaces
td;intmain(){inta,b;cin>>a>>b;intda,xiao;
SZefdsr
·
2024-01-30 23:06
c++
算法
数据结构
【信息学奥赛-C++】2021:【例4.6】最大公约数
#includeusing
namespaces
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#includeusing
namespaces
td;intmain(){intn;cin>
陈无忧cy
·
2024-01-30 23:03
c++
算法
开发语言
信奥一本通:2022:【例4.7】最小n值
然后输出在这个过程中是多少次,也就是n,那么我们怎么把分数加起来,就只能把分数变为小数,可以发现,上面再相加过程中一直变得是分母,分子一直是1,那怎么把分数变为小数,就用分子除以分母#includeusing
namespaces
td
陈无忧cy
·
2024-01-30 23:03
算法
信奥赛
C++
c++
2021:【例4.6】最大公约数
太简单了,直接看代码公约数就是他们最大的因数,例如4的因数有124,而6的因数有123,那么2就是他们最大的公约数#includeusing
namespaces
td;intmain(){intm,n,c
陈无忧cy
·
2024-01-30 23:02
算法
c++
数据结构
信奥赛
信奥一本通
谢尔宾斯基三角形 C++
下面是用C++代码模拟的过程:#includeusing
namespaces
td;intmain(){
蓝色奇夸克
·
2024-01-30 22:32
c++
算法
开发语言
C++倒三角形
倒三角形–算法竞赛经典习题2-3:输入正整数nusing
namespaces
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//数组大小using
namespaces
td;intmain(){intn,d[MAX][MAX
ff_11111
·
2024-01-30 22:31
c++
算法
【C++】三角形(triangle)
#include#includeusing
namespaces
td;int
CuberW
·
2024-01-30 22:00
c++
开发语言
C++的布尔类型
bool类型只有两个值:true-----表示真(本质是1)false----表示假(本质是0)#includeusing
namespaces
td;intmain(){//创建bool数据类型boolflag
头顶一只喵喵
·
2024-01-30 22:26
c++
开发语言
算法
c++病毒4.0(鼠标乱飞修复)
include#include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932using
namespaces
td
gezhengxu2024
·
2024-01-30 22:44
c++
病毒
c++
病毒
C++语法基础及使用案例
C++语法基础及使用案例1.第一个C++程序#includeusing
namespaces
td;intmain(){coutusing
namespaces
td;intmain(){coutusing
namespaces
td
神奇的布欧
·
2024-01-30 22:24
c++
算法
开发语言
c语言
vscode
C++ 读写锁
需要boost库支持,或者C++17原生支持std::shared_mutex#include#includeusing
namespaces
td;typedefboost::shared_mutexSharedMutex
qq_38781075
·
2024-01-30 22:53
c++
算法
开发语言
C++ 将 private 转换为 public
将代码第一行加上#defineprivatepublic#defineprotectedpublic其实就是转换一下宏定义,可能不是很优雅,只是提供一种思路,下面代码编译不报错#includeusing
namespaces
td
qq_38781075
·
2024-01-30 22:23
c++
C++ 基本数据类型
void#include#includeusing
namespaces
td;intmain(){c
WongKyunban
·
2024-01-30 19:49
C/C++
c++
上一页
53
54
55
56
57
58
59
60
下一页
按字母分类:
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
其他