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#关键字 namespace
name
spaceS
omeNameSpace{pu
xklcy
·
2024-03-25 00:44
C#关键字
c#
开发语言
【欧拉函数+快速幂】第十四届蓝桥杯省赛C++ C组 Java A组/研究生组 Python 研究生组《互质数的个数》(C++)
【题目描述】给定a,b,求1≤x#include#includeusingname
spaces
td;typedeflonglongLL;constintMOD=998244353;LLqmi(LLa,LLb
北洋的霞洛
·
2024-03-24 07:25
蓝桥杯历年真题
蓝桥杯
c++
算法
模板方法模式
HDU1870 愚人节的礼物
AC的C++代码如下:#include#includeusingname
spaces
td;intmain(){strings;intcount;while(getline(cin,s)){count=0
m0_38056893
·
2024-03-22 04:51
HDU题解
HDU题解
1054:三角形判断
【输入样例】345【输出样例】yes【参考答案】:#includeusingname
spaces
td;intma
yuhaoteng666
·
2024-03-20 07:47
一本通答案
c++
《牛客》-D 小红的中位数
用vector进行优化)2.可以算是思维进行‘优化’思路大家都挺好想的,就是其中的细节(具体思路可以参考以下代码,豁然开朗(逃~))ACcode:1(优雅帅气stl)#includeusingname
spaces
td
gentle coder
·
2024-03-18 19:30
c++
算法
stl
【CSP试题回顾】202312-1-仓库规划
CSP-202312-1-仓库规划解题代码#include#includeusingname
spaces
td;intn,m;intmain(){cin>>n>>m;vector>posList(n,vector
LOST P
·
2024-03-18 15:55
CSP备考
算法
c++
2023郑州大学招新赛暨选拔赛补题
U287344B.NANA学跳舞-洛谷|计算机科学教育新生态(luogu.com.cn)U287345C.NANA去上课-洛谷|计算机科学教育新生态(luogu.com.cn)#includeusingname
spaces
td
Shuzi_master7
·
2024-03-18 05:11
算法
蓝桥杯刷题九
实际上分析时间复杂度是不能过的先给暴力代码#includeusingname
spaces
td;constintN=1e4+10;boolst[N][N];intsum;intn;intmain(){cin
没头发的年轻人
·
2024-03-17 18:27
蓝桥杯
蓝桥杯
算法
迷宫问题(c++题解)
题目描述设有一个N*N(2usingname
spaces
td;intn,ans;inta[10005][10005];intf[9][9]={{0,1},{1,0},{-1,0},{0,-1},{1,1
hb_zhyu
·
2024-03-17 15:52
c++
开发语言
除留余数哈希表
#include#include#include#includeusingname
spaces
td;intcreat_num()//创造两位数的整数{intn=rand()%9;n=n*10+(rand
路痴楷
·
2024-03-16 23:31
数据结构学习日志
C++学习日志
没发现问题的题
散列表
哈希算法
数据结构
c++
数据结构.pta测试二
#includeusingname
spaces
td;typedefstructnode{intdata;node*next;}*List;ListlistPoduce(){inta;ListL;node
丰海洋
·
2024-03-15 13:44
数据结构
OJ_复数集合
题干C++实现#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;structComplex{intre;intim
Listennnnnnm
·
2024-03-15 09:37
数据结构与算法
c语言
算法
c++
OJ_哈夫曼树
实现从小根堆的选择最小的两个合并加和,然后插入回小根堆然后重复上述两个步骤,直到只剩一个元素#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td
Listennnnnnm
·
2024-03-15 09:37
数据结构与算法
c++
算法
代码随想录算法训练营Day45 ||leetCode 70. 爬楼梯 (进阶)|| 322. 零钱兑换 || 279.完全平方数
70.爬楼梯(进阶)本质上和leetcode377一样#include#includeusingname
spaces
td;intmain(){intn,m;while(cin>>n>>m){vectordp
qq_44884699
·
2024-03-14 11:06
leetcode
算法
职场和发展
给定l,r(1e18),定义f(x):x中最大的数位减去最小数位。对于l<=x<=r, 求f(x)最小值
题目#includeusingname
spaces
td;#defineintlonglong#definepbpush_back#definefifirst#definesesecond#definelsonp
__night_
·
2024-03-14 07:00
codeforces
算法
运算符重载函数operator的简单用法与常用案例
重载+号,返回值类型的使用2、重载operator(){}示例:给node结构体重载小于号(首先比较x,如果x相同比较y)structnode{intx,y;booloperatorusingname
spaces
td
叶域
·
2024-03-14 00:52
算法竞赛
C/C++语法
算法
c++
数据结构
排序算法
P1948 [USACO08JAN]Telephone Lines S
该市周围分布着1#include#include#include#include#include#include#includeusingname
spaces
td;inlineintread(){intw
玦卿
·
2024-03-13 21:46
二分
双端队列
c++
C++实现LRU缓存
LRU代码代码#include#include#includeusingname
spaces
td;templateclassLRU{public:typedefpairPair;typedeflistList
VioletEvergarden丶
·
2024-03-13 19:14
数据结构
算法
redis
lru
c++
java
算法学习07:KMP算法
:2.求解next数组(kmp算法重点)3.代码总结前言提示:以下是本篇文章正文内容:一、KMP算法1.kmp匹配过程:2.求解next数组(kmp算法重点)3.代码#includeusingname
spaces
td
Lhz326568
·
2024-03-10 05:00
学习打卡
算法
学习
笔记
c++
开发语言
C/C++编程:前置声明
什么是前置声明所谓「前置声明」(forwarddeclaration)是类、函数和模板的纯粹声明,没伴随着其定义.一般的前置函数声明#includeusingname
spaces
td;voidfun(charch
OceanStar的学习笔记
·
2024-03-09 21:51
C++
c++
c语言
算法
Armadillo使用介绍(八):第二个Armadillo程序
源码#include#includeusingname
spaces
td;usingnamespacearma;//Armadillodocumentationisavailableat://http:/
UPUPUPEveryday
·
2024-03-09 15:44
Armadillo
armadillo
c++
vs
C/C++ 字符串反转的几种方法
0.环境说明:windows7+VSCode+mingw321.使用库方法:reverse()/**功能:字符串反转*/#include#include#includeusingname
spaces
td
不知道叫什么好+1
·
2024-03-09 11:07
C
蓝桥杯 第二章基础算法
编程四小蓝的漆房#includeusingname
spaces
td;voidslove(constint&Case){intn,k;cin>>n>>k;vectora(n);for(auto&x:a)cin
程序设计基础
·
2024-03-08 21:19
算法
c++
c语言
蓝桥杯
leetcode-快速排序法和冒泡排序法
冒泡排序视频讲解快速排序视频动画演示#include#includeusingname
spaces
td;//1.quickSort(arr,0,n-1);注意函数调用是左闭右闭区间,所以递归调用的两次也是左闭右闭
浦东新村轱天乐
·
2024-03-08 15:40
leetcode
leetcode
算法
排序算法
找师傅(独家)
#include#include#includeusingname
spaces
td;structnode{//三种数据intx;inty;intstep;}que[1001];intsx,sy,ex,ey
xiongchenxi111
·
2024-03-07 16:10
算法
c++
数据结构
P8647 [蓝桥杯 2017 省 AB] 分巧克力
#include#defineendl'\n'usingll=longlong;typedefunsignedlonglongull;usingname
spaces
td;voidGordenGhost(
GordenGhost
·
2024-03-07 13:37
蓝桥杯
c++
二分
算法
数据结构实现-线性表
顺序存储#includeusingname
spaces
td;#defineMaxSize50//静态顺序表templatestructsqList{ElemTypedata[MaxSize];//元素intlength
Mystic Musings
·
2024-03-06 22:19
数据结构实现
数据结构
考研
int与string类型转化(C++)
int转为string利用sstream类#include#includeusingname
spaces
td;intmain(){intn=10;stringstreamss;stringstr;ss>
Z-Chelsea
·
2024-03-06 00:51
C++
c++
开发语言
C++ 中大小写字母的转化
以下是常见的几种方式:1.利用ASCII码差值由于所有小写字母的ASCII码比对应的大写字母小32,可以简单地通过加减32来进行转换:#includeusingname
spaces
td;intmain(
wangnaisheng
·
2024-03-04 21:46
C++
c++
牛客周赛 Round 35(A,B,C,D,E,F,G)
code:#include#include#includeusingname
spaces
td;strings;
邪神与厨二病
·
2024-03-04 12:35
牛客
算法
暴力
c++
数论
滑动窗口
单调队列
贪心
构造
胎神游戏集第一期
那当然要先感谢我们的胎神大大了胎神洛谷名:TSzza好了,言归正传,知道你们不喜欢啰嗦,直接上代码一、变色小跳龙#include#include#include#include#includeusingname
spaces
td
偷心_鲸落
·
2024-03-03 15:36
游戏
洛谷
c++
游戏
c++
CF 1934B
冗长的代码(枚举解法)#includeusingname
spaces
td;voidsolve(){intn;cin>>n;if(n==1||n==3||n==6||n==10||n==15){cout=
三冬四夏会不会有点漫长
·
2024-03-03 10:59
#
CF
div
2
B
题
算法
【C++】核心编程--函数高级
函数的默认参数2.函数占位参数3.函数重载4.注意事项1.函数的默认参数在C++中,函数的形参列表中的形参是可以有默认值的//语法:返回值类型函数名(参数=默认值){}#includeusingname
spaces
td
赵远疴
·
2024-03-03 09:58
【C++】
c++
java
开发语言
鬼屋游戏c++
c++#include#include#include#include//用于随机数生成#include//用于随机数种子usingname
spaces
td;//定义房间结构体structRoom{stringdescription
学习智者
·
2024-03-02 20:40
c++
Codeforces Round 929 (Div. 3)---->D. Turtle Tenacity: Continual Mods
2.极端情况就是按递增循序排序,如果这种情况都不行的话,那么就没有可行可情况,因为假如x#include#includeusingname
spaces
td;constintN=1e5+10typedeflonglongll
Touper.
·
2024-03-02 10:26
算法
【C++】一个求数组中最大元素的函数模板
CodeCodeCode#includeusingname
spaces
td;templateTMax_element(Ta[],intle
AC2656
·
2024-03-02 04:46
C++面向对象
c++
扫雷2(2537)
输入描述输入m+1行:第1行:2个整数m,n(nusingname
spaces
td;chara[110][110];intm,n;intmain(){cin>>
jht0105
·
2024-02-29 02:09
算法
c++
数据结构
牛客2024年除夕娱乐赛
A我有一款游戏code:#include#includeusingname
spaces
td;intmain(){cout#includeusingname
spaces
td;intmain(){cout#
邪神与厨二病
·
2024-02-29 01:38
牛客
娱乐
算法
c++
用C++做简易版和平精英
最近迷上了和平精英这款游戏,也是确定用C++做一款和平精英#include#include#include#include#include#include#includeusingname
spaces
td
AI迅剑
·
2024-02-24 11:29
c++
16.递推
定义:全局规律,每一项均可以由前面的几项计算得出俩个重要的要素1.边界:递推的起始点2.递推关系式:当前项与前面几项的关系习题:1188:菲波那契数列(2)#includeusingname
spaces
td
pointers_syc
·
2024-02-24 09:56
蓝桥杯算法
图论
算法
P1601 A+B Problem(高精)
P1601A+BProblem(高精)纯代码记录#includeusingname
spaces
td;inta[505],b[505];intaD,bD;intres[505];///@brief结果会是反着的
方糖--C++菜鸟程序员
·
2024-02-23 17:06
刷题代码记录
c++
CF 1921E
#includeusingname
spaces
td;voidsolve(){inth,w,xa,ya,xb,yb;cin>>h>>w>>xa>>ya>>xb>>yb;if(xa==xb){coutxb)
三冬四夏会不会有点漫长
·
2024-02-23 16:04
#
1600
算法
C++数据结构:队列模板
#include#includeusingname
spaces
td;classQueue{private:intq[100010];inthead=0,tail=0;public:voidpush(intx
UESTC_KS
·
2024-02-23 12:30
C++
c++
数据结构
算法
C++(12) 模板类、模板继承(严格模式和自由模式)
文章目录模版类1.模版类2.模版参数限制3.模版继承3.1严格模式3.2自由模式4.模版类的模版函数5.返回值类型带有模版模版类1.模版类#includeusingname
spaces
td;/*当前Person
Nuyoah.--
·
2024-02-23 00:46
c++
开发语言
c语言
学习
经验分享
Cholesky法(汇总)
=(double**)malloc(m*sizeof(double*));for(i=0;i=0;k--){temp=0;for(i=k+1;i#include"windows.h"usingname
spaces
td
【执珪】瑕瑜·夕环玦
·
2024-02-22 23:44
计算方法实验
c++
c语言
c#
密钥加密问题
C++参考代码:#include#include#includeusingname
spaces
td;intmain(){vectorx;vectory;mapword;charch=getchar();
xioaobai_huan
·
2024-02-20 23:58
Java期末复习专栏
基础编程题目
java
数据结构
安全
c++
算法中关于数学的题目练习
为正整数且互质,不能由p、q凑出来的最大的数为(p-1)(q-1)-1不知道数学结论可以打表找规律题解#include#defineintlonglong#defineendl'\n'usingname
spaces
td
东东不熬夜
·
2024-02-20 23:26
算法
算法
c++
BZOJ-1055: [HAOI2008]玩具取名(区间DP)
代码:#include#include#includeusingname
spaces
td;#definerep(i,x)for(inti=0;i++
AmadeusChan
·
2024-02-20 21:50
【C++】---类和对象(中)默认成员函数 和 操作符重载
#includeusingname
spaces
td;classDate{private:int_year;int_month;
伤心男孩拯救世界(Code King)
·
2024-02-20 19:16
C++
c++
开发语言
【C++】实现Date类的各种运算符重载
继续以Date类为例,实现运算符重载:1.Date.h#pragmaonce#include#includeusingname
spaces
td;classDate{private:int_year;int_month
伤心男孩拯救世界(Code King)
·
2024-02-20 19:16
C++
c++
开发语言
上一页
31
32
33
34
35
36
37
38
下一页
按字母分类:
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
其他