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
C++信奥赛一本通3002
#includeusingname
spaces
td;intmain(){cout<<"你好,世界。";return0;}
顺铭12
·
2025-02-06 15:37
C++信奥赛一本通答案
c++
java
开发语言
c++监听键盘, C++模拟键盘输入
1、方案1:#include#include#includeusingname
spaces
td;intmain(){system("chcp65001>nul");std::cout#include#includeusingname
spaces
td
fK0pS
·
2025-02-06 03:08
GAME
每日一题洛谷P5721 【深基4.例6】数字直角三角形c++
#includeusingname
spaces
td;intmain(){intn;cin>>n;intt=1;for(inti=0;i<n;i++){for(intj=0;j<n-i
wen__xvn
·
2025-02-06 00:18
洛谷
c++
算法
开发语言
大一计算机的自学总结:基数排序
一、计数排序#includeusingname
spaces
td;//全局变量#definen10intarr[n];inthelp[20]={0};//计数排序voidcountSort(){for(inti
WBluuue
·
2025-02-05 23:08
算法
排序算法
数据结构
c++
大一计算机的自学总结:链表的相关操作
大一计算机的自学总结:单双链表的反转一、合并两个有序链表#include#include"LinkedListFunction.h"usingname
spaces
td;//合并两个有序链表Listmerge
WBluuue
·
2025-02-05 23:07
链表
数据结构
c++
算法
大一计算机的自学总结:数据结构设计相关题
一、设计有setAll功能的哈希表#includeusingname
spaces
td;intcnt=0,setAllTime=0,setAllValue;map>mySet;voidput(intx,inty
WBluuue
·
2025-02-05 23:37
数据结构
算法
c++
leetcode
链表
Pentagon
我的代码解:#include#include#includeusingname
spaces
td;stringreverseString(stringstr){stringreversedStr=str;
你好 Future!
·
2025-02-05 20:20
习题
c++
算法
开发语言
【基础算法(五) 双指针】
最长连续不重复序列#includeusingname
spaces
td;constintN=100010;intarr[N],s[N];intmain(){intn;cin>>n;for(inti=0;i
小新的秃头日常
·
2025-02-05 19:11
算法
数据结构
c++
题解:洛谷 P2695 骑士的工作
实现#includeusingname
spaces
td;intn,m,a[20005],ans,b[20005];intm
网络骑士hrg.
·
2025-02-05 18:37
c++
经验分享
贪心算法
排序算法
华为 笔试 4.24 第二题:这一题只通过了36%why
日常实习求捞捞本科北理24届,目前已经拿nus研究生offer准备在剩下这几个月做一段软件开发实习,我之前有小公题解|#[NOIP2010]数字统计##includeusingname
spaces
td;
2301_79125431
·
2025-02-05 16:24
java
如何用C++/C语言写一个简单的闹钟程序
版本1:不使用time.h头文件(简单版)//C++Alarm_Easyv1.0//MadeByCoding_Potato#include#includeusingname
spaces
td;//Clock
会编程的土豆
·
2025-02-05 14:04
C++实用编程项目
c++
c语言
apache
喷漆机器人问题
#include#include#includeusingname
spaces
td;constintMAX=200;constintINF=100000;intcolor[MAX];//存储每个小矩形的颜色
谛听-
·
2025-02-05 12:23
回溯
洛谷打印三角形
#includeusingname
spaces
td;intn,i,cnt;intmain(){scanf("%d",&n);for(i=1;i0){//按照剩余的空位判断i-=2;for(intj=0;
葡萄989
·
2025-02-05 12:18
算法
c++
开发语言
洛谷B2122 单词翻转
代码#include#include#includeusingname
spaces
td;intmain(){stringa;while(cin>>a){//
tazuh
·
2025-02-05 11:44
c++
算法
开发语言
C/C++题目字符数组-单词翻转
Simple:Input:helloworldOutput:ollehdlrow#includeusingname
spaces
td;charch[510];intmain()
Zhang_Charls
·
2025-02-05 11:42
c++
字符串
c算法
蓝桥杯刷题-07-整数删除-优先队列 + 模拟链表 ⭐
//优先队列+模拟链表#include#defineintlonglong#defineendl'\n'usingname
spaces
td;typedefpairpii;constintN=5e5+10
椰椰荔枝糖
·
2025-02-05 09:58
刷题
蓝桥杯
链表
算法
C++计算给定序列在多次修改前后满足特定条件的极大匹配方案的大小
对于1≤iusingname
spaces
td;intmain(){ios::sync_with_stdio(false);cin.tie(nullptr);intn,m;cin>>n>>m;vecto
weixin_30777913
·
2025-02-05 07:17
c++
list学习之删除操作clear,erase, pop_front, pop_back
list的删除操作clear:清除内容erase:擦除元素pop_front:移除首元素pop_back:移除末元素代码实现#include#include#include#includeusingname
spaces
td
班公湖里洗过脚
·
2025-02-05 06:35
STL
list
01背包(回溯法)
#includeusingname
spaces
td;intn;intm;intw[101];intv[101];intbest=0;intcw=0;//记录背包中当前的物品重量intcv=0;//记录背包中当前的物品价值
D52013140
·
2025-02-05 05:34
嵌入式面经111题答案汇总(含技术答疑)_嵌入式项目源码分享
题解|#火星A+B##includeusingname
spaces
td;题解|#质数因子##include"stdio.h"intmain(){longin[NOIP2015]跳石头AC代码#includeusingnamesp
huaxinjiayou
·
2025-02-05 02:37
java
每日一题洛谷B2136 素数回文数的个数c++
#includeusingname
spaces
td;intmain(){intn;cin>>n;intc=0;for(inti=11;i<=n;i++){intt=i;intsum=0;while(t)
wen__xvn
·
2025-02-05 00:54
洛谷
c++
算法
数据结构
c++ 程序计算圆的面积(Program to find area of a circle)
示例代码://C++programtofindarea//ofcircle#includeconstdoublepi=3.14159265358979323846;usingname
spaces
td;
csdn_aspnet
·
2025-02-04 19:19
c++
c++
算法
数据结构
蓝桥杯算法训练 排序C++
代码:#includeusingname
spaces
td;intmain(){intnum[3];inttemp;cin>>num[0]>>num[1]>>num[2
王大头不吃藕
·
2025-02-04 15:47
C++
C++制作简单计算器
制作简单计算器C++制作简单计算器|加法|减法|求余||乘法|除法|平方根|主要使用平台1.VScode2.Qt3.linux4.windows代码=#include#includeusingname
spaces
td
Qt历险记
·
2025-02-04 13:07
C++软件工程师课程
c++
qt
visual
studio
机器人塔(蓝桥杯)
输入一行两个整数M和N,空格分开(0usingname
spaces
td;intmap1[1001],a[501][501],N,M
乔梦圆的博客
·
2025-02-04 12:29
搜索算法
蓝桥杯
dfs
算法
c++
剪枝
Codeforces Educational Codeforces Round 170 (Rated for Div. 2)
代码:#includeusingname
spaces
td;#defineintlonglongconstintN=2e5+10,INF=0x3f3f3f3f;constintmod=1
关于SPFA它死了
·
2025-02-04 11:11
Codeforces
算法
c++
猜字谜,去重,排序后在两层for循环进行对比。逻辑很简单,代码量长。
#includeusingname
spaces
td;vectorsplit(charde){strings;getline(cin,s);stringstreamss(s);vectorres;stringtoken
JackieZhang.
·
2025-02-04 06:38
c++
算法
开发语言
猜数字,暴力枚举0-9999,输入的A,B不用管,只需要处理数字即可
#includeusingname
spaces
td;boolcmp(string&answer,string&guess,string&results){inta=0;//统计数字正确且位置正确的个数intb
JackieZhang.
·
2025-02-04 06:38
算法
求水仙花数,提取算好,打表法。或者暴力解出来。
暴力解法#includeusingname
spaces
td;intmain(){ intn,m; cin>>n>>m; if(n7||m0) { sum+=powN[num_cp%
JackieZhang.
·
2025-02-04 06:38
算法
数据结构
代码随想录算法训练营Day51 | 101.孤岛的总面积、102.沉没孤岛、103.水流问题、104.建造最大岛屿
#include#includeusingname
spaces
td;intdir[
Harryline-lx
·
2025-02-03 19:43
代码随想录
算法
深度优先
优先队列(priority_queue)
#include#includeusingname
spaces
td;intmain(){priority_queueque;//大顶堆//priority_queue,greater>que//小顶堆que.push
祝余呀
·
2025-02-03 15:59
c++
算法
开发语言
关于将HashMap替换原有Map的key保持value不变报错java.util.ConcurrentModificationException的处理方案
. ̄)需求有个类似下面的数据为Map>>,其中key为资源id,value为List>,{"4757637007194717896":[{"oracleTable
SpaceS
ize":"30000","
梦岚如雪
·
2025-02-03 11:56
轮子库之HashMap
java工具类
java
开发语言
后端
HashMap
Hash表
h(x))常见从0~10^9映射到0~10^5就要对10^5取mod(取模一般要质数最好)但是可能会有冲突1.拉链法:O(1),每个节点拉一条链增加数#include#includeusingname
spaces
td
KuaCpp
·
2025-02-03 10:55
算法
c++
代码随想录算法训练营Day38||完全背包问题、leetcode 518. 零钱兑换 II 、 377. 组合总和 Ⅳ 、70. 爬楼梯 (进阶)
#include#includeusingname
spaces
td;intmain(){intN,V;cin>>N>>V;vectorweight(N+1,0);vectorvalue(N+1,0);for
jiegongzhu3z
·
2025-02-03 05:15
算法
leetcode
职场和发展
(每日一题)连续⼦数组最⼤和———<动态规划-线性dp>
ii.状态转移⽅程:dp[i]=max(dp[i-1]+arr[i],arr[i])C++算法代码:#include#includeusingname
spaces
td;intmain(){//初始化intn
课堂随笔
·
2025-02-03 05:13
每日一题
动态规划
算法
考研
每日一题
java -Xms -XX 这些参数该咋写?5 分钟带你快速入门!
前言java-Xms4G-Xmx4G-XX:MaxMeta
spaceS
ize=512m-XX:Meta
spaceS
ize=512m-XX:MaxDirectMemorySize=256m-XX:+HeapDumpOnOutOfMemoryError-XX
·
2025-02-03 02:20
后端java
搜索与图论复习1
1深度优先遍历DFS2宽度优先遍历BFS3树与图的存储4树与图的深度优先遍历5树与图的宽度优先遍历6拓扑排序1DFS:#includeusingname
spaces
td;constintN=10;intn
KuaCpp
·
2025-02-03 01:09
图论
深度优先
算法
c++ list
end);//区间构造//list(n,elem);//元素构造//list(constlist&lst);//拷贝构造#include#include#include#includeusingname
spaces
td
飞yu流星
·
2025-02-03 01:38
c++学习笔记
c++
list
开发语言
C++ 交换变量的四种方法
请听题:#includeusingname
spaces
td;voidswap_variables(int&n,int&m);intmain(){intn,m;cin>>n>>m;
HASHMOTO
·
2025-02-03 01:06
编程
c++
算法
PAT 甲级 1093
发一下只是因为很喜欢《APT》#includeusingname
spaces
td;longlongintMOD=1000000007;intmain(){longlongintts=0,las=0,ans
金秋飞雪
·
2025-02-02 20:37
算法
c++
数据结构
pat考试
CSES-1640 Sum of Two Values
代码#includeusingname
spaces
td;intn,a[200001],m;mapflag;intmain(){ios::sync_with_stdio(0
edward1346
·
2025-02-02 18:46
算法
c++
洛谷 P8706 [蓝桥杯 2020 省 AB1] 解码
H3el5o2HHHellllloo#includeusingname
spaces
td;intmain(){stringn;cin>>n;getchar();for(inti=0;i='1'&&n[i]
Sonaldo7
·
2025-02-02 16:34
C++
学习
蓝桥杯
c++
c++揭秘2024春晚刘谦老师的魔术,快来看看吧
封面:源码:#include#include#includeusingname
spaces
td;structCard{intvalue;//用数字代表扑克牌,简化处理};//打印牌堆voidprintDeck
天若有情673
·
2025-02-02 12:09
c++
c++
开发语言
1057 数零壹
代码#include#include#includeusingname
spaces
td;intmain(){stringa;getline(cin,a);intlen=a.length();intt[26
Liu_Meihao
·
2025-02-02 10:55
算法
priority_queue的创建_结构体类型(重载小于运算符)c++
一个是用内置类型的方式,在priority_queue,less,把int改成结构体的名字就可以了,但此时就不能用less了,因为less默认是对内置类型使用的,如果less#includeusingname
spaces
td
h^hh
·
2025-02-02 07:26
算法
开发语言
c++
数据结构
【最大异或结点——Trie,创意】
题目代码#includeusingname
spaces
td;constintN=1e5+10,M=31e5+10;inttr[M][2],idx,e[M];//[maxn*maxb][changes]inta
Kent_J_Truman
·
2025-02-02 04:36
蓝桥杯
算法
【2024蓝桥杯/C++/B组/小球反弹】
目标2:求出Sx,Sy,再根据勾股定理求S代码#include//引入所有的标准库头文件usingname
spaces
td;//使用
Kent_J_Truman
·
2025-02-02 04:35
蓝桥杯
蓝桥杯
c++
C++练习(六)多态性与虚函数
#includeusingname
spaces
td;classBase{protec
子非愚
·
2025-02-01 23:37
C++练习
C++:爬楼梯问题,设有阶台阶需要攀登,每次只能上1阶或2阶,问共有多少种上台阶方案。程序输入为台阶数,输出为上台阶方案总数。
代码如下:#includeusingname
spaces
td;intlou(intx){if(x==1||x==2)returnx;elsereturnlou(x-1)+lou(x-2);}intmain
程序员东min
·
2025-02-01 22:33
c++
java
算法
C++学习——引用变量中易出现的错误
在C++学习中容易出现变量引用不恰当导致编译错误,先来看一段代码:#includeusingname
spaces
td;voidprintMessage(string&message){cout<
Ricky_One
·
2025-02-01 21:57
学习
c++
笔记
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
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
其他