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
poj 2007 Scrambled Polygon 极角排序
a-tmp,b-tmp)>0)6return1;7if(cross(a-tmp,b-tmp)==0)8returnlength(a-tmp)13#include14#include15usingname
spaces
td
a18865477815
·
2023-11-24 03:19
POJ 2007Scrambled Polygon (极角排序)
#include#include#include#include#include#include#includeusingname
spaces
td;typedeflonglongll;constdoubleeps
ナナ色のブランク
·
2023-11-24 03:19
计算几何
排序算法
算法
POJ 2007 Scrambled Polygon(极角排序)
//极角排序#include#include#include#include#include#includeusingname
spaces
td;constintMAX_N=100;intn=0;structPoint
ramay7
·
2023-11-24 03:48
POJ
凸包
poj
极角排序
B - Scrambled Polygon POJ - 极角排序
B-ScrambledPolygonPOJ-2007按照与第一个点的夹角排序即可,#include#include#includeusingname
spaces
td;#definemaxn105#definePR1e
ID_BePosit
·
2023-11-24 03:47
计算几何
迪杰斯特拉算法(dijkstra)_朴素版_堆优化版
号点的最短距离①朴素版(适用于稠密图)初始化距离dist[1]=0;//1为起点dist[i]=正无穷;Si记为当前已确定最短距离的点fori:0~nt#include#includeusingname
spaces
td
liaoai
·
2023-11-24 02:07
算法
图论
c++
最短距离
01背包问题-动态规划
#include#includeusingname
spaces
td;voidbag_test_print(){vectorweight={1,3,4};vectorvalue={15,20,30};intbagweight
可乐不加冰呀
·
2023-11-24 02:19
算法学习
动态规划
算法
CCFCSP试题编号:201912-2试题名称:回收站选址
#includeusingname
spaces
td;intmain(){intn;cin>>n;intarr[1005][2]={0};intres[5]={0};intup=0;intdown=0;intleft
可乐不加冰呀
·
2023-11-24 02:19
ccf-csp练习题题解
算法
c++
CCFCSP试题编号:202212-2试题名称:训练计划
#include#includeusingname
spaces
td;constintN=101;intn,m;intp[N],t[N];intearliest[N],latest[N];intmain(
可乐不加冰呀
·
2023-11-24 02:18
ccf-csp练习题题解
算法
c++
C++中的struct结构体和class类
2.用法(1)在main函数里定义,并初始化#includeusingname
spaces
td;structstu{stringname;intage;doublescore;};intmain(){stus
可乐不加冰呀
·
2023-11-24 02:48
C++学习基础学习
c++
C++将一个整数的各个数位上的数字依次输出
=3768534/100%10=5768534/1000%10=8768534/10000%10=6768534/100000%10=7那么循环就好了#include#includeusingname
spaces
td
可乐不加冰呀
·
2023-11-24 02:48
C++学习基础学习
c++
算法
开发语言
CCFCSP试题编号:202309-1试题名称:坐标变换(其一)
#include#includeusingname
spaces
td;intmain(){intn,m;cin>>n>>m;inti;intdxSum=0,dySum=0;for(i=0;i>dx>>dy
可乐不加冰呀
·
2023-11-24 02:48
ccf-csp练习题题解
c++
C++中string二维数组的介绍
#includeusingname
spaces
td;intmain(){stringarr[2][2]={"agergre","hjtsstr","hrr","hhjsssaq"};cout<
可乐不加冰呀
·
2023-11-24 02:48
C++学习基础学习
c++
开发语言
算法
C++中一维数组作函数参数的使用方法
#includeusingname
spaces
td;//打印函数voidPrintArr(intarr[],
可乐不加冰呀
·
2023-11-24 02:18
C++学习基础学习
c++
CCFCSP试题编号:201803-2试题名称:碰撞的小球
#includeusingname
spaces
td;str
可乐不加冰呀
·
2023-11-24 02:13
ccf-csp练习题题解
算法
c++
Codeforces Round 822 (Div. 2)(D前缀和+贪心加血量)
A.选三条相邻的边遍历一次求最小值#includeusingname
spaces
td;constintN=1e6+10,mod=1e9+7;#defineintlonglongintn,m;vectorg
南岸以南南岸哀
·
2023-11-24 01:57
codeforce
算法
D. Secret Santa(构造)
如果匹配到自己因为没有送出礼物的人想送出礼物的人被选了,才没送出所以可以换一下,让当前这个没送出礼物的人送给想送出礼物的目标,然后让原本送给目标的人怂给当前这个没有送出礼物的人即可#includeusingname
spaces
td
南岸以南南岸哀
·
2023-11-24 01:56
算法
codeforce
Educational Codeforces Round 155 (Rated for Div. 2)
A.最优直接用第一个人的力量值即可,比他小的数都不用思考,力量值比他大的如果耐力值也比他大于等于那就一定-1,否则输出第一个人的力量值即可#includeusingname
spaces
td;constintN
南岸以南南岸哀
·
2023-11-24 01:26
算法
【数据结构/C++】栈和队列_链队列
#includeusingname
spaces
td;//链队列typedefintElemType;typedefstructLinkNode{ElemTypedata;structLinkNode*next
小谢sd
·
2023-11-24 01:21
C/C++
数据结构
数据结构
c++
开发语言
Codeforces Round 745 (Div. 2)(C:前缀和+滑动窗口,E:位运算加分块)
/2,对于当前满足有k个合法下标的排列,就是一个n-k个不合法的下标的排列,所以每一个合法排列都相反的存在一个对称性#includeusingname
spaces
td;constintN=1e6+10,
南岸以南南岸哀
·
2023-11-24 01:20
算法
codeforce
【数据结构/C++】栈和队列_顺序栈
#includeusingname
spaces
td;#defineMaxSize10//1.顺序栈typedefintElemType;structStack{ElemTypedata[MaxSize]
小谢sd
·
2023-11-24 01:49
C/C++
数据结构
数据结构
c++
开发语言
蓝桥每日一题(day 7: 蓝桥594.蛇形填数)--规律--easy
MyCode:#includeusingname
spaces
td;constintN=50;intmat[N][N];voiddisp(){for(inti=0;iusingname
spaces
td;intmp
_Ocean__
·
2023-11-24 01:48
蓝桥杯备赛
算法
蓝桥每日一题(day 5: 蓝桥593.既约分数)--数学--easy(注:排掉一个重复的情况)
#includeusingname
spaces
td;intgcd(inta,intb){returnb?
_Ocean__
·
2023-11-24 01:18
蓝桥杯备赛
c++
算法
开发语言
蓝桥每日一题(day 6: 蓝桥505.数字三角形)--线性dp--easy
观察一下,发现:当行数为奇数的时候,只有最后一行的中间的f符合要求;当行数为偶数的时候,只有中间两个中位数符合要求CODE:#include#includeusingname
spaces
td;constintN
_Ocean__
·
2023-11-24 01:18
蓝桥杯备赛
1024程序员节
带头节点的单链表实现队列
#includeusingname
spaces
td;//带头节点的单链表实现队列structQNode{//队列节点intdata;QNode*next;};structQueue{//队列QNode*
李sy同学
·
2023-11-24 00:00
队列
数据结构
链表
函数返回数组的方法
如下述代码所示:int*fun1(){inttemp[arrlen];for(inti=0;iusingname
spaces
td;//定义Point为指向二维数组的指针typedefint(*Point
努力的小带土
·
2023-11-23 23:54
C++
c++
什么?!双非BAT大厂技术offer,举报了哥(含职位名单)
题目互换性,机题解|#质数因子##includeusingname
spaces
td;intmain(){intn;cin>
2301_78234743
·
2023-11-23 23:15
java
408-数据结构-代码题
20142014二叉树(链式存储)#include#includeusingname
spaces
td;typedefstructNode{structNode*left;structNode*right
chen_ :)
·
2023-11-23 22:14
数据结构
深度优先
计算机考研
C++ 容器
string容器字符串查找和替换#includeusingname
spaces
td;#include//1.查找voidtest01(){stringstr1="abcdefg";intpos=str1
小潤澤
·
2023-11-23 22:49
顺序栈和链栈
#includeusingname
spaces
td;#defineMAXSIZE100typedefintSElemType;typedefstruct{SElemType*base;SElemType
lxylxy001
·
2023-11-23 21:12
c++
算法
数据结构
最小生成树
#includeusingname
spaces
td;#defineINF0x3
lxylxy001
·
2023-11-23 21:41
算法
数据结构
线性表的链式存储
#includeusingname
spaces
td;#defineTRUE1#defineFLASE0#defineOK1#defineERROR1#defineINFEASIBLE-1#defineOVERFLOW
lxylxy001
·
2023-11-23 21:41
c++
算法
数据结构
【无标题】
#includeusingname
spaces
td;typedefstructStackNode{intdata;structStackNode*next;}StackNode,*LinkStack;voidInitStaack
lxylxy001
·
2023-11-23 21:07
算法
数据结构
电子学会C/C++编程等级考试2023年03月(一级)真题解析
样例输入*样例输出************答案://参考答案:#includeusingname
spaces
td;intmain(){ch
码农StayUp
·
2023-11-23 20:28
c++
开发语言
青少年编程
等级考试
电子学会
Peter算法小课堂—前缀和数组的应用
桶相当于计数排序,看一个视频桶排序太戈编程1620题算法解析#includeusingname
spaces
td;constintR=11;intcnt[R];//cnt[t]代表第t天新增几人ints[
Peter Pan was right
·
2023-11-23 20:36
算法
c++
数据结构
【C++】学习笔记(一)----windows.h的一些简单应用
其头文件为conio.h#include#include#includeusingname
spaces
td;voidgotoxy(HANDLEhOut,intx,inty){COORDpos;pos.X
深思沉浮
·
2023-11-23 19:44
C++
c++
【C/C++】递归算法
求所有的信都装错信封共有多少种不同情况#includeusingname
spaces
td;constintN=30;intn;longf[N];intmain(){scanf("%d",&n);f[1]
蔚蓝星辰mic
·
2023-11-23 17:01
C/C++
算法
c语言
递归
树的存储结构-孩子链表
特点:找孩子容易,找双亲难代码如下:#includeusingname
spaces
td;typedefcharElemType;#defineMAX_tree_size//孩子结构typedefstructCTNode
唐火
·
2023-11-23 16:17
数据结构和算法基础
链表
数据结构
二叉树
C++
树
洛谷P3254:圆桌问题(二分图多重匹配,网络流最大流)
#includeusingname
spaces
td;constintmaxn=1e3+10;constintmaxm=2e5+10;constintinf=0x3f3f3f3f;structss{in
ACM败犬
·
2023-11-23 15:59
网络流
二分图
二分图多重匹配
网络流
【蓝桥杯之动态规划】:线性dp练习
线性dp练习目录动态规划:线性dp练习数字三角形题目代码题解最长上升子序列题目代码题解最长公共子序列题目代码题解最短编辑距离题目dfs暴力版本动态规划数字三角形题目代码#includeusingname
spaces
td
不会喷火的小火龙
·
2023-11-23 15:04
#
蓝桥杯
算法与数据结构
动态规划
蓝桥杯
深度优先
pta公路村村通 使用了kruskal算法 但可能prim算法更适合这道题后期还会更新
#includeusingname
spaces
td;constintmaxn=1000;structEdge{intu;intv;intprice;};vectorve;intfather[maxn];
SolitaryXIaoFan
·
2023-11-23 14:33
Prim && Kruskal 算法--最小生成树 -PTA 公路村村通
/*普利姆*/#include#include#include#include#include#defineMAXN3005#defineINFI9999999usingname
spaces
td;typedefstructNode
默默Silence
·
2023-11-23 14:31
数据结构 栈和队列的应用
在昨天分享了有关栈和队列的基础知识和基本操作后,今天来分享一些有关栈和队列的应用栈和队列的应用删除字符串中的所有相邻重复项#include#includeusingname
spaces
td;stringremove
LancerWithX
·
2023-11-23 14:01
数据结构
数据结构
【PTA】公路村村通 (30 分)
#include#defineMAXN1010#defineMAXDATA1000000000usingname
spaces
td;intN,M;intG[MAXN][MAXN];intdis[MAXN]
fftx_00
·
2023-11-23 14:58
PTA_数据结构
算法
数据结构
SDUTACM春季集训选拔赛(19级)PTA补题
思路:把yn中的n看作二进制中的1,y看作二进制中的0然后求出字符串对应的二进制数加1(因为结论从1开始)即为结果:#include#includeusingname
spaces
td;chars[120
菜鸡一号¥
·
2023-11-23 14:47
总结
训练赛
图论相关题-pta-个人整理-含有解析
输入格式:输入第一行中给出2个整数i(0usingname
spaces
td;intmain(){intn,m;charG[15];cin>>n>>m;cin>>G;mapmp;//桥梁while(m--
firgk
·
2023-11-23 14:33
图论
算法
c++
【转】C++ ZLib压缩与解压缩
www.cnblogs.com/chuncn/archive/2011/03/23/1992481.html#include"stdafx.h"#include"zlib.h"#includeusingname
spaces
td
玄冬Wong
·
2023-11-23 13:42
C/C++
c++使用windows接口实现数据压缩与解压缩
+使用windows接口实现数据压缩与解压缩#include"stdafx.h"#includetypedefNTSTATUS(WINAPI*typedef_RtlGetCompressionWork
SpaceS
ize
清风!识字
·
2023-11-23 13:40
c++
windows
c++
C/C++ 使用API实现数据压缩与解压缩
RtlGetCompressionWork
SpaceS
izeRtlGetCompressionWork
SpaceS
ize
微软技术分享
·
2023-11-23 13:37
《Visual
C++
编程技术实践》
c语言
c++
windows
压缩与解压缩
感知机算法理解与C++实现
一、简单叙述一下感知机算法的原理#include#include#includeusingname
spaces
td;constintN=5;classdata_set{public:data_set()
牛顿学计算机
·
2023-11-23 13:59
洛谷p5710答案C语言,洛谷题单 101【入门2】分支结构
洛谷题单101【入门2】分支结构洛谷题单101【入门2】分支结构P1046陶陶摘苹果100200150140129134167198200111110#includeusingname
spaces
td;
weixin_39880623
·
2023-11-23 13:48
洛谷p5710答案C语言
上一页
125
126
127
128
129
130
131
132
下一页
按字母分类:
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
其他