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】分支结构 (今天刷洛谷了嘛)
andAcwing算法基础课P5710【深基3.例2】数的性质#include#include#include#include#include#include#include#includeusingname
spaces
td
Joanh_Lan
·
2023-11-23 13:13
60天洛谷挑战flag
蓝桥杯
c++
洛谷P2294 [HNOI2005]狡猾的商人
从文件\(input.txt\)中读入数据,文件第一行为一个正整数\(w\),其中\(w#include#include#include#include#definemaxn100007usingname
spaces
td
weixin_30897079
·
2023-11-23 12:08
题解——洛谷P2294 [HNOI2005]狡猾的商人(差分约束)
裸的差分约束dfs判断负环,如果有负环就false,否则就是true注意有多组数据,数组要清空#include#include#include#include#includeusingname
spaces
td
weixin_34054931
·
2023-11-23 12:38
ux
洛谷 P2294 [HNOI2005] 狡猾的商人
当ai>0a_i>0ai>0时表示这个月盈利aia_iai元,当aiusingname
spaces
td;structaty
GG_Bond...
·
2023-11-23 11:53
编程万能专栏(什么都有)
题解
图论
算法
Linux-UDP通信
include#defineSERV_PORT8000#defineSERV_IP_ADDR"127.0.0.1"#defineQUIT_STR"quit"#defineBUFSIZE128usingname
spaces
td
lysine_
·
2023-11-23 11:10
linux
udp
c++
网络协议
网络
洛谷入门题库详细思路及优化(C++)①
一、顺序结构⑴B2025(输出)注意:该题只需要输出,无需输入,可自行忽略①使用cin和cout#includeusingname
spaces
td;intmain(){chara;cin>>a;coutusingname
spaces
td
陌桐≯
·
2023-11-23 08:16
c++
算法
电子学会C/C++编程等级考试2022年12月(一级)真题解析
样例输入9样例输出10答案://参考答案:#includeusingname
spaces
td;intmain(){ intx; cin>>x; cout<
码农StayUp
·
2023-11-23 08:08
c++
青少年编程
等级考试
电子学会
开发语言
13.求面积[有问题]
#include#include#includeusingname
spaces
td;voidfun(doublea,b,c){doublep,c;p=(a+b+c)/2;c=sqrt(p*(p-a)*(
Xxxx. .Xxxx
·
2023-11-23 08:36
C语言学习
算法
笔记
c语言
开发语言
学习
并查集 奇偶游戏
l-1](前缀和)为奇数->s[r]与s[l-1]不同类若为偶数,则s[r]与s[l-1]为同一类用带权并查集维护*/#include#include#defineMAXN20000usingname
spaces
td
'Karma
·
2023-11-23 07:46
游戏
算法
奇偶游戏-----带权并查集+扩展域并查集
Bug-Free题解网址:https://www.acwing.com/solution/content/29308/带权并查集#include#include#include#includeusingname
spaces
td
_WAWA鱼_
·
2023-11-23 07:42
并查集
算法
c++
c++练习题(3)
#includeusingname
spaces
td;intmain(){inta[20];intn;cin>>n;intsum=0;for(inti=0;i>a[i];sum=sum+a[i];}floatb
李余博睿(新疆)
·
2023-11-23 07:07
算法
c++
【无标题】
#includeusingname
spaces
td;intmain(){intcnt=0;for(inti=1;iusingname
spaces
td;intmain(){intn;cin>>n;n=n*
李余博睿(新疆)
·
2023-11-23 07:07
c++
算法
数据结构
Parity game POJ - 1733 带权并查集加离散化
细节:由于区间跨度很大,需要离散化处理//#include#include#includeusingname
spaces
td;constintmaxn=1e4+5;structseg{intl,r,
SCUEC__zhazhahui
·
2023-11-23 07:33
并查集
算法
数据结构
c++
acm竞赛
c++练习题(4)
#include#includeusingname
spaces
td;intmain(){inta[110];intn;cin>>n;for(inti=0;i>a[i];}intma=a[0];intmai
李余博睿(新疆)
·
2023-11-23 06:29
c++
算法
c / c++传递数组
必须传递进入一个len,表示数组的长度#includeusingname
spaces
td;voidprint(inta[],intlen){for(inti=0;i
人生有味是清欢
·
2023-11-23 05:59
c/c++
c++
c语言
排序算法
c++vector 一维/二维数组排序
#include//一维vector排序usingname
spaces
td;intmain(){inta[5]={3,1,5,2};vectorb(a,a+4);//把a数组的值给bsort(b.begin
冲呀冲
·
2023-11-23 05:28
c++
算法
开发语言
反转链表(LeetCode 206. Reverse Linked List)
//#includeusingname
spaces
td;//*Definitionforsingly-linkedlist.structListNode{intval;ListNode*next;Lis
YaMiwan
·
2023-11-23 05:31
链表
c++
leetcode
算法
数据结构
基础排序算法----归并排序
#includeusingname
spaces
td;inta[
GhostRiderQin
·
2023-11-23 05:43
数据结构
算法设计
排序算法
归并排序
字符串变参格式化
#include"stdafx.h"#include#include#include#include#includeusingname
spaces
td;//https://learn.microsoft.com
zhaodongdong2012
·
2023-11-23 04:29
C++
c++
C++时间转换
#include#include#include#include#include#include"boost/date_time.hpp"usingname
spaces
td;namespace{std:
zhaodongdong2012
·
2023-11-23 04:29
C++
c++
18.手写一个function模板函数
手写一个function模板函数实现需求:使如下代码可以正常运行:#includeusingname
spaces
td;intadd(inta,intb){returna+b;}classADD_MULT
拾雪藏于春
·
2023-11-23 04:53
c++
开发语言
c++
19.手写线程池
手写线程池需求:#include#include#include#include#include#include#include#include#include#includeusingname
spaces
td
拾雪藏于春
·
2023-11-23 04:23
c++
c++
机试笔记(C++)
质数相关:boolisPrime(intn){if(nusingname
spaces
td;constintN=1e7+10;intisPrime[N+1];//在下题中true表示不是素数intmain
NElks
·
2023-11-23 04:42
算法
数据结构
c++
Educational Codeforces Round 20 A-E
#includeusingname
spaces
td;constintN=1e5+5;typedeflongl
Unlimitedz
·
2023-11-23 03:54
cf补题
算法
牛客小白月赛81
#includeusingname
spaces
td;constintN=1e6+5;typedeflonglongll;typede
Unlimitedz
·
2023-11-23 03:54
补题记录
算法
数据结构
Educational Codeforces Round 21 A-D
文章目录A.LuckyYearB.AverageSleepTimeC.TeaPartyD.ArrayDivisionA.LuckyYear水题#includeusingname
spaces
td;constintN
Unlimitedz
·
2023-11-23 03:24
cf补题
算法
c++
数据结构
数据结构与算法编程题10
a:1,2,2,4,5,7,8,9,10b:1,2,3,6,7,8#includeusingname
spaces
td;typedefintElemtype;#defineERROR0;#defineOK1
爱发明的小兴
·
2023-11-23 03:39
算法与数据结构
数据结构
数据结构与算法编程题9
表中不允许有重复的数据a:1,2,4,5,7,8,9,10b:1,2,3,6,7,8#includeusingname
spaces
td;typedefintElemtype;#defineERROR0;
爱发明的小兴
·
2023-11-23 03:09
算法与数据结构
数据结构
数据结构与算法编程题8
#includeusingname
spaces
td;typedefintElemtype;#defineERROR0;#defineOK1;typedefstructLNode{Elemtypedata
爱发明的小兴
·
2023-11-23 03:08
算法与数据结构
数据结构
数据结构与算法编程题11
a:1,2,2,4,5,7,8,9,10b:1,2,3,6,7,8#includeusingname
spaces
td;typedefintElemtype;#defineERROR0;#defineOK1
爱发明的小兴
·
2023-11-23 03:34
算法与数据结构
数据结构
『亚马逊云科技产品测评』活动征文|AWS 数据库产品类别及其适用场景详细说明
第三方开发者媒体等亚马逊云科技官方渠道目录前言、AWS数据库产品类别01、AmazonAurora02、AmazonDocumentDB03、AmazonDynamoDB04、AmazonElastiCache05、AmazonKey
spaces
06
顾三殇
·
2023-11-23 03:49
Linux
服务器部署/linux
命令
aws
亚马逊云科技产品测评
linux
服务器部署
【C++ Primer Plus学习记录】for循环
//forloop.cpp#if1#includeusingname
spaces
td;intmain(){inti;for(i=0;iusingname
spaces
td;intmain(){cout>limit
画饼校长
·
2023-11-23 02:10
学习
c++
数据结构
开发语言
软件工程
【C++ Primer Plus学习记录】递增运算符(++)和递减运算符(--)
//5.7#if1#includeusingname
spaces
td;intmain(){inta=20,b=20;cout
画饼校长
·
2023-11-23 02:39
c++
学习
开发语言
visualstudio
算法
c++狼人杀代码
狼人杀代码:#include//C++输入输出流库#include//使用srand函数要用到这个库#include//使用time函数要用到这个库#include#includeusingname
spaces
td
would112112
·
2023-11-23 02:38
c++
游戏程序
狼人杀C++代码分享
#include#include#include#include#includeusingname
spaces
td;structIDname{intgeshu;stringNAME;};IDnamejue_se
萌新变大佬
·
2023-11-23 02:31
c++
算法
开发语言
C++狼人杀源代码(可复制)
#include#include#include#includeusingname
spaces
td;voidbrc(){system("cls");intjy=1;intsy=3;srand((int)
M10_01M
·
2023-11-23 02:31
c++
PTA 7-3 数组循环左移
#includeusingname
spaces
td;intmain(){ints1[100],s2[100];intn,m;cin>>n>>m;if(m>n){if(m%n==0){for(inti=0
鑫鑫向栄
·
2023-11-23 01:42
算法
数据结构
c++
c语言
如何用gym创建强化学习环境 - 持续更新中
OpenAIgymFunctionsandClass
spaces
class
我是弱渣
·
2023-11-23 01:49
强化学习
Python
强化学习
openal
人工智能
python
C++学习之路——构造函数的分类和调用
两种分类方式:按参数分为:有参构造和无参构造按类型分为:普通构造和拷贝构造三种调用方式:括号法显示法隐式调用法#includeusingname
spaces
td;classperson{//作用域public
weixin_48268568
·
2023-11-23 01:49
c++
分类
开发语言
C++之谓词
C++之谓词一元谓词#includeusingname
spaces
td;#include#include//仿函数返回值类型是boo1数据类型,称为谓词//一元谓词classGreaterFive{public
傻童:CPU
·
2023-11-23 01:16
C++
c++
开发语言
C++之内建函数对象
C++之内建函数对象算术仿函数#includeusingname
spaces
td;#include//内建函数对象头文件//内建函数对象算术仿函数voidtest(){//negate一元仿函数取反仿函数
傻童:CPU
·
2023-11-23 01:16
C++
c++
开发语言
C++之常用算法
C++之常用算法for_eachtransform#includeusingname
spaces
td;#include#includeclassTranfor{public:intoperator()(
傻童:CPU
·
2023-11-23 01:16
C++
c++
算法
rpc
【C++】入门二
就是说在定义或者声明函数时给形参赋予一个确定的值(也叫缺省值),那么当我们调用这个函数的时候,就可以不传值也可以传值,传值的话缺省值就没作用了,不传值的话就按缺省值去参与函数的运行,下面是一个简单的例子#includeusingname
spaces
td
嘛弄
·
2023-11-23 01:43
c++
开发语言
C++之常用的排序算法
C++之常用的排序算法sort#includeusingname
spaces
td;#include#include#includevoidMyptint(intval){coutv;v.push_back
傻童:CPU
·
2023-11-23 01:12
C++
c++
排序算法
开发语言
c++ 函数的申明
1一个cpp中两种情况1.1定义使用1.2声明使用定义2按定义后直接使用的顺序不用声明函数#includeusingname
spaces
td;intmax(inta,intb){intmax=a>b?
tenc1239
·
2023-11-23 00:18
c++
c++
算法
开发语言
递增递减运算符 ++ -- 前置后置的区别
118运算符-算术运算符-递增递减_哔哩哔哩_bilibili2.1#includeusingname
spaces
td;intmain(){ inta=0; intb=0; a++; ++b;
tenc1239
·
2023-11-23 00:12
c++
c++
算法
数据结构
C++学习之路之容器(stack-栈)
//先进后出#include#include#include#includeusingname
spaces
td;intmain(intargc,constchar**argv){stack>data;/
.小墨迹
·
2023-11-22 23:06
C++学习
c++
学习
开发语言
蓝桥杯每日一题2023.11.22
题目描述题目分析由题目知其每个品牌积分一定小于315故直接暴力枚举每个品牌如果符合要求直接输出即可(答案:150)#includeusingname
spaces
td;intmain(){for(inti
Akct
·
2023-11-22 23:40
蓝桥杯
算法
职场和发展
C++ 子类型关系之“花木兰替父从军”
例:#includeusingname
spaces
td;classA{public:A(){}~A(){}voidkill(){coutusingname
spaces
td;classA{public:A
cpp_learners
·
2023-11-22 22:30
c++
c++
Krustral算法求解最小生成树 C++实现
#include#includeusingname
spaces
td;constintN=100010,M=200010,INF=0x3f3f3f3f;intn,m;intp[N];structEdge{
随风而散y
·
2023-11-22 22:26
算法
c++
开发语言
图论
数据结构
上一页
126
127
128
129
130
131
132
133
下一页
按字母分类:
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
其他