丿依然灬小帅
丿依然灬小帅
全部文章
模板类
Java基础总结(11)
JS(2)
Linux命令总结(3)
python(6)
Web(5)
多媒体软件操作方法(2)
年末总结(4)
数据库(2)
未归档(2)
题解(19)
归档
标签
去牛客网
登录
/
注册
丿依然灬小帅的博客
全部文章
/ 模板类
(共11篇)
别人总结好的ACM模板
https://blog.csdn.net/qq_32265245/article/details/53046750?tdsourcetag=s_pcqq_aiomsg
2019-04-08
0
491
vector定义方式
#include<iostream> #include<vector> using namespace std; int main() { //第一种定义方式 vector<int> vec; //第二种定义方法,把n个长度的数初始化为0 ...
2019-04-05
0
526
快速幂模板
#include<iostream> #include<string> #include<cstdio> #define ll long long using namespace std; ll pow_mod(ll a,ll b,ll mod){ ll ...
2019-04-03
0
477
汉诺塔模板
#include<iostream> #include<cstdio> using namespace std; void hanor(int src,int mid,int desk,int count){ if(count==1){ printf...
2019-03-28
0
407
BFS迷宫最短路径模板
#include<iostream> #include<queue> #define INF 65535 using namespace std; int vis[100][100]; //路径长度 int map[100][100]; //迷宫地图 typedef pa...
2019-03-27
0
712
快排模板
#include<iostream> using namespace std; int arr[5] = {5,4,1,3,6}; //待排序数组 void quick_sort(int left,int right){ int tmp = arr[left]; ...
2019-03-26
1
411
LIS,LCS,LICS模板
最长递增子序列模板(1) #include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main() { int n; int a...
2019-03-15
0
430
做题用到的C++或者C语言函数方法
内置10进制转换各种进制的函数 函数原型:char *itoa(int value,char *string,int radix ); value是你想转化的数,radix 多少进制。 string的substr函数 s.substr(pos, ...
2019-01-13
0
446
大数加法
#include<iostream> #include<algorithm> #include<string> #include<vector> using namespace std; int main() { string str1; ...
2018-10-13
0
455
大数阶乘
#include<iostream> using namespace std; int main() { int n,i,j; int jw; int gw=1; int a=0; int jc[10005]; jc[0] = 1; ...
2018-10-13
0
402
首页
上一页
1
2
下一页
末页