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
牛客小白月赛83 解题报告
题目链接:https://ac.nowcoder.com/acm/contest/72041#questionA题解题思路签到代码#includeusingname
spaces
td;intmain(){
bughunter-
·
2024-01-13 22:34
算法&数据结构
算法竞赛
算法
c语言进程创建、等待和退出
#include#include#includeusingname
spaces
td;intmain(void){pid_tpid;pid=fork();//创建新进程if(pid==0)//子进程{for
vitaminYZZ
·
2024-01-13 21:45
c语言进程
使用矩阵建立有向和无向
#includeusingname
spaces
td;typedefstructGraph{chara[10];intjuzhen[10][10];intvex,edge;}Graph;intLocate
爱莉我老婆
·
2024-01-13 21:41
考试
矩阵
线性代数
使用邻接表建立有向图与无向图
使用邻接表创建无向图#includeusingname
spaces
td;typedefstructbiao{intbianhao;intweight;structbiao*next;}biao;typedefstructtou
爱莉我老婆
·
2024-01-13 21:41
考试
算法
弗洛伊德使用邻接矩阵建立有向图求最短路
#includeusingname
spaces
td;typedefstructGraph{chara[100];intjuzhen[100][100];intvex,edge;}Graph;intLocate
爱莉我老婆
·
2024-01-13 21:10
考试
c++
2020年3月月赛丙组——上海市计算机学会竞赛平台
上海市计算机学会竞赛平台|YACST1打渔还是晒网#includeusingname
spaces
td;intmain(){intn;cin>>n;if(n%50){coutusingname
spaces
td
无双worker
·
2024-01-13 21:38
算法
c++
月赛
YACS
2020年5月月赛丙组——上海市计算机学会竞赛平台
T1戴口罩#includeusingname
spaces
td;intmain(){intt=5,k=5,n,z=1;cin>>n;while(k!
无双worker
·
2024-01-13 21:38
算法
c++
数据结构
YACS
月赛
2020年4月月赛丙组——上海市计算机学会竞赛平台
T1竞选班长#includeusingname
spaces
td;inta,b,c,d;intmain(){cin>>a>>b>>c>>d;if((a>=90&&b>=90||a>=90&&c>=90||
无双worker
·
2024-01-13 21:35
算法
c++
数据结构
月赛
YACS
Linux C语言环境下如何输出宽字符 -- 转载
tid=1083940自己整理如下C++#include#include#includeusingname
spaces
td;
云生2342
·
2024-01-13 21:26
【已解决】c++如何打印变量的类型
问题再现想要用函数去打印一个变量的类型名称源码这里采用typeid函数#include#includeusingname
spaces
td;intmain(){inta;printf("%s",typeid
执念斩长河
·
2024-01-13 21:22
课外学习cpp
c++
开发语言
蓝桥杯省赛无忧 编程2 顺子日期
isWithAnswer=true&page=1&first_category_id=1&name=%E9%A1%BA%E5%AD%90%E6%97%A5%E6%9C%9F#includeusingname
spaces
td
暗托涅瓦
·
2024-01-13 21:11
蓝桥杯省赛无忧
蓝桥杯
c++
c语言
蓝桥杯省赛无忧 STL 课件16 set
01set集合修改set比较方法的常见手段,后面的multiset类似#includeusingname
spaces
td;intmain(){set>myset;myset.insert(25);myset.insert
暗托涅瓦
·
2024-01-13 20:35
蓝桥杯省赛无忧
蓝桥杯
c++
c语言
算法
set
[蓝桥学习] 并查集
某个结点的父亲是自己当两个点的根相同时,就说他们是同一类的,连通的找根但是,如果点特别多且形成链的话,找根就会效率很低,所以,可以一边找根,一边把该结点的父结点直接设为根(路径压缩)合并#includeusingname
spaces
td
Waldeinsamkeit41
·
2024-01-13 20:54
学习
数据结构
Codeforces Round 899 (Div. 2)补题
=b[i]3.b1usingname
spaces
td;inta[200010];intmain(){intt;scanf("%d",&t);while(t--){intn;scanf("%d",&n);
as_sun
·
2024-01-13 19:19
codeforces补题
算法
Educational Codeforces Round 160 (Rated for Div. 2)题解
RatingIncrease(Problem-A-Codeforces)题目大意:给定一串数字,要求拆成a,b两个数,不能有前导0,同时ausingname
spaces
td;intmain(){intt
as_sun
·
2024-01-13 19:49
算法
数据结构
有1、2、3一直到n的无序数组,求其排序算法,要求时间复杂度为O(n),空间复杂度为O(1)
#include#includeusingname
spaces
td;voidswap(int&a,int&b){a^=b;b^=a;a^=b;}voidsortArray(vector&ans){intn
e_Gravity
·
2024-01-13 19:18
刷题
排序算法
算法
c++
【BFS模板】B3625 迷宫寻路
代码广搜模板题,可以看注释#include#includeusingname
spaces
td;#defineFor(i,j,k)for(inti=j;i=k;i--)#defineMaxN105int
起床气233
·
2024-01-13 19:15
真题题解
算法
c++
开发语言
宽度优先
Codeforces Round 916 (Div. 3)补题
#includeusingname
spaces
td;intmain(){intt;scanf("%d",&t)
as_sun
·
2024-01-13 19:12
codeforces补题
算法
Codeforces Round #119 (Div. 1) B. AlgoRace
题意意思就是说给了m(1#include#include#includeusingname
spaces
td;intf[65][65][65];intg[65][65][65];intmain(){intn
zhj5chengfeng
·
2024-01-13 18:45
ACM_图论
ACM_动态规划
Codeforces Round #771 (Div. 2) B - Odd Swap Sort
:题意:给定一个数组,相邻两位的和为奇数就可以进行交换,操作若干次以后,能否使数组变为是非递减数列思路:通过样例发现规律,前面有奇数大于当前奇数,就不能递增,偶数同理#includeusingname
spaces
td
Ghostsman
·
2024-01-13 18:39
蓝桥杯
职场和发展
FFmpeg学习之视频像素和尺寸转换
1.获取像素格式转换的上下文sws_getCachedContext2.像素转换sws_scale#include#includeusingname
spaces
td;//测试解封装extern"C"{#
wangshenqiang
·
2024-01-13 17:30
FFmpeg学习笔记
音视频
c++
C++六大组件之一:仿函数
场景一:与其过多叙述定义,不如在下面一个场景中来理解仿函数:#includeusingname
spaces
td;templatevoidbubbles_sort(T*arr,intsize)//冒泡排序
无极太族
·
2024-01-13 17:51
重生之C++启程
c++
开发语言
C++第四天
代码:#includeusingname
spaces
td;//定义时间类classtimee{private:inth;//时intm;//分ints;//秒public://无参构造timee();/
*穷jι﹄生
·
2024-01-13 16:55
C++
c++
算法
开发语言
linux
算法训练营第四十五天|70. 爬楼梯(进阶版)322. 零钱兑换 279.完全平方数
#includeusingname
spaces
td;voidsolve(intn,intm){vectordp(n+1);dp[0]=1;for(intj=1;j=i)dp[j]
啊就赵得柱
·
2024-01-13 15:54
算法
C++11新特性(也称c++2.0)
目录1.输出C++版本:coutintmain(){cout#include#includeusingname
spaces
td;intvalues[]{1,2,3};vectorv{1,2,3};vectorcities
看山不是山a
·
2024-01-13 13:10
C++
c++
java
算法
boost::pool 库速记
boost::pool库速记Boost::pool使用示例#include#include#include#include#include#includeusingname
spaces
td;usingnamespaceboost
weixin_30919429
·
2024-01-13 13:08
c/c++
内存管理
数据结构与算法
c++day3
#includeusingname
spaces
td;classPerson{int*age;string&name;public:intget_age();stri
xxg-hh
·
2024-01-13 13:46
c++
c++day6
vector容器主要的功能函数:#include#includeusingname
spaces
td;intmain(){//无参构造vectorv1;//有参构造vectorv2(5,99);//判空cout
xxg-hh
·
2024-01-13 13:46
c++
AcWing 1236:递增三元组
题目入口题目跳转题目描述给定三个整数数组A=[A1,A2,…AN],B=[B1,B2,…BN],C=[C1,C2,…CN],请你统计有多少个三元组(i,j,k)满足:1.1≤i,j,k≤N2.Ai#includeusingname
spaces
td
1z1
·
2024-01-13 12:30
Acwing
算法
c++
算法
C++内存小练习
输出是给出关于潜在的地震事件次数的报告#include#includeusingname
spaces
td;//定义一个指标用来判断是否发生了地震#defineINDEX1.5doublepower(doublearr
坑真多
·
2024-01-13 11:36
c++
visual
studio
简单的推箱子游戏实战
推箱子控制游戏结束最终代码合法性判断:项目分析墙:0,地板:1,箱子目的地:2,小人:3,箱子:4,箱子命中目标:5地图初始化背景图片#include#include#include#includeusingname
spaces
td
坑真多
·
2024-01-13 11:02
游戏
visual
studio
c++
AC自动机 模板
#include#defineIOSios::sync_with_stdio(0);cin.tie(0);cout.tie(0);#defineendl'\n'usingname
spaces
td;typedeflonglongll
泠楠子
·
2024-01-13 11:32
模板
c++
算法
Xcode 10 自己创建的.h文件没有提示
因为手机12.0的系统所以升级到Xcode10,但是升级过后引入了第三方库之后,我自己新建的.h文件没有提示了,下面是解决办法File--Work
spaceS
ettings--将BuildSystem:
小小小城
·
2024-01-13 11:04
结构体成员 分数比较大小
题目:代码:#include#includeusingname
spaces
td;structNum{doublefenzi;doublefenmu;charfenhao;};boolcmp(Numr1,
小小小CTFER
·
2024-01-13 08:21
大一新生C/C++入门程序作业
java
算法
c++
了解及掌握二维数组
代码:#includeusingname
spaces
td;intmain(){intn;cin>>n;intmatrix[n][n];for(inti=0;i>matrix[i][j];}}intsum
小小小CTFER
·
2024-01-13 08:49
大一新生C/C++入门程序作业
算法
数组去重
152032406789300400分析:定义一个v数组,用来存储对应下标的p数组中的数是否被访问过,没有被访问过并且数和前一个相等就存储1,v数组默认存储0for(inti=0;i#include#includeusingname
spaces
td
放心笑
·
2024-01-13 08:15
leetcode 动态规划(爬楼梯、零钱兑换、完全平方数)
每次你可以爬至多m(1#includeusingname
spaces
td;intmain(){intn,m;while(cin>>n>>m){vectordp(n+1,0);dp[0]=1;for(inti
mingchen_peng
·
2024-01-13 08:45
动态规划
leetcode
leetcode
动态规划
算法
c/c++实现网格最短路径问题
#include#includeusingname
spaces
td;intMinPath(inta[100][100],intm,intn){intdist[m][n],path[m][n],i,j;dist
pofenx
·
2024-01-13 07:17
算法
c++
c语言
算法
分治算法-快速排序
#includeusingname
spaces
td;intquickSearch(inta[],intleft,intright){inti=left,j=right,k=a[left];//k初值定数组第一个数
一拳十个锵锵怪
·
2024-01-13 07:03
算法
算法
c++
分治算法
C++周四作业
题目:代码实现:#includeusingname
spaces
td;classttime{public:ttime(){h=0;m=0;s=0;}ttime(intxh,intxm,intxs){h=xh
陳木木木木木木
·
2024-01-13 06:02
c++
开发语言
C++周末作业
#includeusingname
spaces
td;templateclassmyarr{public:intset(inti,Tval);intget(inti,T*res);T&operator[]
陳木木木木木木
·
2024-01-13 06:32
c++
算法
开发语言
平方朋友对C++
给定一个正整数n,我们规定如果两个正整数A和B满足,对于任意0≤i#includeusingname
spaces
td;inta,b;intf(intb){return(b*b)/1000;}intmain
菜鸡小陈
·
2024-01-13 06:45
c++
算法
数据结构
C++打印日期
输入描述:输入包括两个整数y(1#include#includeusingname
spaces
td;intdays[2][13]={{0,31,28,31,30,31,30,31,31,30,31,30,31
fiskerzero
·
2024-01-13 06:12
c++
c语言
算法
蓝桥杯省赛无忧 STL 课件13 list
01list的定义和结构以下是一个示例,展示如何使用listt容器:#includeusingname
spaces
td;intmain(){listmylist;//在链表尾部插入元素mylist.push_back
暗托涅瓦
·
2024-01-13 05:54
蓝桥杯省赛无忧
蓝桥杯
c++
list
c语言
算法
C++学习笔记(三十七):c++ 计时
简单的平台无关的计时函数#include#include#includeintmain(){usingname
spaces
td::literals::chrono_literals;//获取当前时间autostart
pcop
·
2024-01-13 05:18
c++
学习
笔记
C++学习笔记(三十六):c++ 线程
线程的简单代码示例#include#includestaticbools_Finished=false;voidWork(){usingname
spaces
td::literals::chrono_literals
pcop
·
2024-01-13 05:17
c++学习笔记
c++
学习
笔记
[libjsoncpp] libjsoncpp demo
#include#include#include#include"jsoncpp/json/json.h"usingname
spaces
td;intmain(intargc,char**argv){std
ykun089
·
2024-01-13 05:35
Lib
libjsoncpp
L1-022 奇偶分家
输入样例:9887410126150342277结尾无空行输出样例:36结尾无空行AC代码:#includeusingname
spaces
td;intmain(){intN;cin>>N;intodd
平人的进步日常
·
2024-01-13 04:22
团体程序设计天梯赛GPLT
c++
L1-022 奇偶分家 (10分)
我写的emm#includeusingname
spaces
td;intmain(){intn,x,t=0;cin>>n;for(inti=1;i>x;if(x%2==0)t++;}coutusingname
spaces
td
zinc@
·
2024-01-13 04:21
c++
L1-022. 奇偶分家
include#include#include#include#include#include#include#include#include#includetypedeflonglongll;usingname
spaces
td
ma_meng
·
2024-01-13 04:50
PAT
上一页
77
78
79
80
81
82
83
84
下一页
按字母分类:
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
其他