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
大一蒟蒻伴你答pta天梯赛(L1-051--L1-060)
"代码都是c++的"L1-051打折思路:蒟蒻题代码:#includeusingname
spaces
td;voidsolve(){doublea,k;cin>>a>>k;printf("%.2f",a*
Haostar;
·
2025-02-28 14:17
算法
c++
数据结构
C++ 对txt文档进行编辑
#includeusingname
spaces
td;#includeFILE*stream;//定义一个文件类型的指针变量,以便接下来对文件操作errno_terr;//定义一个errno_t类型的变量
阿波茨的鹅
·
2025-02-28 11:28
C++语法
邻接矩阵存储图 C++题解
nusingname
spaces
td;intn,m,x,y;inta[40][40];intmain(){scanf("%d%d",&n,&m);memset(a,0x3f,sizeof(a));for
繁花开盛夏
·
2025-02-28 10:48
图论
算法
开发语言
c++
图论
【数组】- 如何在C++的数组中插入元素?
输入有四行第一行有一个整数n(5usingname
spaces
td;intmain(){inta[11],i,n,x,y;cin>>n;for(i=0;i>a[i];}cin>>x;//插入的位置cin
小鹏编程
·
2025-02-28 09:09
C++
c++
数组
C++ 练习2
答案:cpp#include#includeusingname
spaces
td;classPerson{private:stringidCard,name,g
四代目 水门
·
2025-02-28 08:02
C++学习笔记
c++
算法
开发语言
day58 第十一章:图论part08
#include#include#include#includeusingname
spaces
td;intmain(){intm,n,s,t;cin>>n>>m;vectorinDegree(n,0);
mvufi
·
2025-02-28 05:07
图论
算法
数据结构
P8794 [蓝桥杯 2022 国 A] 环境治理
P8794[蓝桥杯2022国A]环境治理-洛谷|计算机科学教育新生态(luogu.com.cn)#includeusingname
spaces
td;#definelllonglongconstintN=
小星星子
·
2025-02-28 03:17
算法
c++
数据结构
图论
【pta】1036 跟奥巴马一起编程
代码#includeusingname
spaces
td;intmain(){intn;charc;cin>>n>>c;introw=0;for(inti=0;i
Liu_Meihao
·
2025-02-27 23:12
算法
c++
数据结构
【pta】1018 锤子剪刀布
代码#includeusingname
spaces
td;intmain(){intn;cin>>n;charjia,yi;intwinjia=0,lowjia=0,pingjia=0,winyi=0,lowyi
Liu_Meihao
·
2025-02-27 23:42
c++
算法1-3 全排列问题
#include#includeusingname
spaces
td;intn;inta[12];i
咚咚轩
·
2025-02-27 21:27
dfs
算法1-3 选数
题目描述已知n个整数x1,x2,⋯,xn,以及1个整数k(k#includeusingname
spaces
td;intn,k;inta[22],ans;//判断质数boolprime(intnum){if
咚咚轩
·
2025-02-27 21:57
搜索
递归
高精度 A+B Problem
输入输出样例输入#111输出#12输入#210019099输出#210100方法1:结果用数组返回(推荐)#includeusingname
spaces
td;strings1,s2;inta[100001
咚咚轩
·
2025-02-27 21:27
高精度加法
4 算法1-3 三连击(升级版)
输入输出样例输入#1123输出#1192384576219438657273546819327654981说明/提示保证Ausingname
spaces
td;i
咚咚轩
·
2025-02-27 21:55
枚举
C++模板与STL七日斩:从工业编程到高效数据管理(工业项目)
模板如何提升工业代码复用性实战项目:创建通用【工业设备容器】模板类类模板的定义与实例化模板参数默认值#include#includeusingname
spaces
td;templateclassIndustrialContainer
AI少女小鹿
·
2025-02-27 18:36
算法
前端
服务器
c++
Ozon Tech Challenge 2020 (Div.1 + Div.2, Rated) C. Kuroni and Impossible Calculation(鸽巢原理+数学)
#includeusingname
spaces
td;typedeflonglongll;constintmaxn=2e5+1;constllinf=1
为什么他们cf写的这么快
·
2025-02-27 14:30
数学
c#学习笔记
usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingDemo;name
spaces
tudytest
一抓掉一大把
·
2025-02-27 13:21
c#
VS C++通过路径遍历文件夹图片并生成xml文件并调用
+生成xml的方法有很多,这里简单介绍以下opencv自带的FileStorage函数使用方法,1、生成xml文件:#include#includeusingnamespacecv;usingname
spaces
td
贫僧这就还俗、
·
2025-02-27 11:10
c++
xml
24-3-25拓扑+二分图+tarjan
blog.csdn.net/Mitchell_Donovan/article/details/116654722问题描述:有N个比赛队伍(1#include#include#includeusingname
spaces
td
Agnes_A20
·
2025-02-27 06:04
c++
算法
开发语言
作业day6
接口编写一个正方形类,继承自长方形类构造函数初始化无论如何,正方形类对象总是正方形的#include#include#include#include#include#include#includeusingname
spaces
td
m0_58248149
·
2025-02-27 04:49
算法
c++
蓝桥杯2014年第五届真题——拼接平方数(C/C++)
输入两个正整数ab(a//万能头文件usingname
spaces
td;intnumb
指北针_N
·
2025-02-27 02:01
蓝桥杯真题
2.✨java练习1(熟悉“类”)
输入格式输入两个整数A,B,用空格隔开输出格式输出一个整数,表示这两个数的和数据范围0≤A,B≤1e8C++#include//包含标准输入输出库usingname
spaces
td;//使用标准命名空间
*TQK*
·
2025-02-27 02:31
Java
java
开发语言
c++
P8615 [蓝桥杯 2014 国 C] 拼接平方数
输入格式两个正整数a,b(ausingname
spaces
td;boolisp(inta){if(a0
今天_也很困
·
2025-02-27 02:58
蓝桥杯
职场和发展
算法
蓝桥杯砝码称重
以下是完整的代码:#include#include#includeusingname
spaces
td;intmain(void){ios::sync_with_stdio(false);cin.tie(
昨今
·
2025-02-27 00:43
蓝桥杯
java
算法
02.26 类模板和STL容器
node*tail;构造函数析构函数增删改查排遍历6个函数}程序代码:#include#include#include#include#include#include#includeusingname
spaces
td
Unique_yt
·
2025-02-26 23:36
c++
开发语言
拐角IV c++
(0usingname
spaces
td;#defineN1005intx[N];intmain(){intn;cin>>n;for(inti=1;i<=n;i++){for(intj=
Functionhkjhgvc
·
2025-02-26 20:43
c++
算法
开发语言
map的学习
#includeusingname
spaces
td;#include#include//find()://erase()//size()//clear()voidprintmis(map&a){map:
liuyangzhou666
·
2025-02-26 07:07
算法
c++
stl
js 判断变量是否不是空字符串(含空格与中文空格)
判断是否是空字符串,空格或者中文空格也算空字符串functionisNotEmptyStr(s){if(typeofs=='string'&&s.length>0){//Trimthestringtoremove
spaces
andChinese
spaces
consttrimmedStr
切糕师学AI
·
2025-02-26 06:36
javascript
javascript
前端
开发语言
代码随想录算法训练营Day57 | 拓扑排序精讲、dijkstra(朴素版)精讲
#include#include#include#includeusingname
spaces
td;intmain(){in
Harryline-lx
·
2025-02-26 06:01
代码随想录
算法
【游戏——BFS+分层图】
代码#includeusingname
spaces
td;constintN=110;constintM=310;intdx[4]={-1,0
Kent_J_Truman
·
2025-02-25 14:09
csp
算法
EX_25/2/22
world"str=str+ptr;str+=ptrstr[0]='H'#include#include#include#include#include#include#includeusingname
spaces
td
若荒
·
2025-02-25 09:39
hqyj_schoolwork
c++
【c++】【线程池】可调用对象包装器
#includeusingname
spaces
td;intadd(inta,intb){returna+b;}intmain(){int(*func_ptr)(int,int)=&add;coutu
钟离墨笺
·
2025-02-25 09:37
c++
c++
算法
开发语言
【算法】二分789. 数的范围
题目数的范围思路代码#includeusingname
spaces
td;#defineN100010intn;intq[N];main(){intm;cin>>n>>m;for(inti=0;i>q[i
Liu_Meihao
·
2025-02-25 07:51
算法
c++
开发语言
c++,二叉树
#include#include#include#include#includeusingname
spaces
td;typedefstructNode{intkey,ltag,rtag;Node*lchild
慕容晓开
·
2025-02-25 05:10
日常学习
c++
算法
数据结构
通过C++编程语言实现“数据结构”课程中的链表
#includeusingname
spaces
td;//链表节点结构体structNode{intdata;//数据域Node*next;//指针域Node(intval):data(val),next
珠峰日记
·
2025-02-25 05:07
数据结构
c++
链表
二分模板题
大于它的数注意要判断是否符合条件即如果a的小于它的数还大于它就不成立或者c的数小于它也不成立结果要注意转longlongans+=(longlong)tp1*tp2;int->longlong#includeusingname
spaces
td
Cow_2024
·
2025-02-25 02:14
算法模板
算法
每日一题洛谷P1328 [NOIP 2014 提高组] 生活大爆炸版石头剪刀布c++
#includeusingname
spaces
td;intmain(){intn,na,nb;cin>>n>>na>>nb;inta[200]={0};intb[200]={0};for(inti=0;
wen__xvn
·
2025-02-24 22:14
洛谷
生活
蓝桥杯训练题No.6
#includeusingname
spaces
td;signedmain()//正在研究signed{intn;cin>>n;cout.fill('0');//不足位数补0coutusingname
spaces
td
GC_Lion
·
2025-02-24 11:56
蓝桥杯
蓝桥杯
c++
蓝桥杯真题训练 五一 4/5
#includeusingname
spaces
td;constintmod=1e9+7;typedeflonglongll;constintmaxn=6;lln,m;inta,b;intvis[7][7
iuk11
·
2025-02-24 10:55
蓝桥杯刷题
冬训周报(二)
插松枝模拟题:有一个推送器和一个盒子,推送器会给出松针片,松针下面的片一定要比上面的大,看能组合成一些什么样的松针感觉没什么特别的地方,模拟就行了,但是赛时写拉了,只拿了19分#includeusingname
spaces
td
HL0614SC
·
2025-02-24 10:49
算法
c++
64位win汇编之心得与笔记【4】
文章目录c++与asm互调函数debug参考文献c++与asm互调函数#includeusingname
spaces
td;extern"C"{voidasmLearn(void);voidaddNumber
sakura_sea
·
2025-02-24 00:40
Game
Engine
汇编
笔记
蓝桥杯R格式--高精度算法模拟
#includeusingname
spaces
td;intpos,p1;intib[1566];intan[1567];intn;stringa,b;intmain(){cin>>n>>a;for(inti
泛舟起晶浪
·
2025-02-23 19:41
算法
蓝桥杯
程序人生
【Day46 LeetCode】图论问题 Ⅳ
字符串接龙采用BFS,代码如下:(判断是否在字典中需要遍历每个位置,同时遍历26中可能有点不优雅)#include#include#include#include#include#includeusingname
spaces
td
银河梦想家
·
2025-02-23 17:52
leetcode
图论
深度优先
Darkness I(2023 Hubei Provincial Collegiate Programming Contest)
#include#defineendl'\n'#defineintllusingll=longlong;typedefunsignedlonglongull;usingname
spaces
td;voidGordenGhost
GordenGhost
·
2025-02-23 13:57
开发语言
算法
c++
ccpc
数学
卫星六根数参数预测卫星轨迹
以下是使用C++编写的基于卫星轨道六根数预测卫星轨迹的代码实现:```cpp#include#includeusingname
spaces
td;//地球引力常数(m³/s²)constdoubleMU=
copoer
·
2025-02-23 12:17
c++
东方博宜OJ (1108. 正整数N转换成一个二进制数)
样例输入100输出1100100输入0输出0#includeusingname
spaces
td;intmain(){intn;stringq;cin>>n;while(n!=0){q+=to_
2401_86810542
·
2025-02-23 12:16
算法
数据结构
c++
C++Sleep函数如何使用
2.使用(Windows用的是毫秒做单位)比如一秒后输出s就是(1000毫秒=1秒)#include#iuclude//万能头文件usingname
spaces
td;intmain(){Sleep(1000
sunny13_2013
·
2025-02-23 10:30
C++代码
c++
【洛谷】P8713 [蓝桥杯 2020 省 A2] 填空问题 的题解
代码#include#defineendl"\n"usingname
spaces
td;typedeflonglongll;typedefunsignedlonglongull;namespacefastIO
ZH_qaq
·
2025-02-23 08:18
洛谷题解
蓝桥杯
c++
算法
sa后缀数组使用合集,包括height数组求LPC和LCS,ST表,单调队列优化。
#include#include#include#includeusingname
spaces
td;constintN=1e5+10;//sa是排名i的编号,rk是i排名几intsa[N],rk[N],
Lqingyyyy
·
2025-02-23 06:05
c++
sa后缀数组
思维
BZOJ 1726: [Usaco2006 Nov]Roadblocks第二短路 ——Dijkstra+玄学
50次,然后找优先队列中第二次到达终点t的状态返回就ok记录一下,怕忘了#include#include#include#include#include#include#includeusingname
spaces
td
通信男神杨丽斌
·
2025-02-23 06:01
瞎写
图论
Linux c++程序结构
#includeusingname
spaces
td;
weixin_34378922
·
2025-02-23 05:27
c/c++
操作系统
上一页
19
20
21
22
23
24
25
26
下一页
按字母分类:
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
其他