- 博客(21)
- 收藏
- 关注
转载 SFSA
#include<stdio.h>#include<string.h>#include<math.h>#include<iostream>#include<algorithm>#include<queue>#include<stack>const int MAXN=1e4+...
2019-09-28 22:16:00 108
转载 sfa
#include<stdio.h>#include<string.h>#include<math.h>#include<iostream>#include<algorithm>#include<queue>#include<stack>#define MAXN 500005using namespace ...
2019-09-27 22:08:00 232
转载 fdssd
#include<stdio.h> #include<string.h> #include<math.h> #include<iostream> #include<algorithm> #include<queue> #include<stack>#define MAXN 1005us...
2019-09-27 06:10:00 484
转载 afasfdsfa
#include <bits/stdc++.h>#define MAXN 1005using namespace std;unsigned long long f[MAXN][MAXN],w[MAXN];int num[MAXN];#define FZ(i,p)(f[i-1][p]+num[p+1]*num[p+1])int i,p;int ...
2019-09-26 22:16:00 74
转载 sgag
#include <bits/stdc++.h>#define MAXN 1005using namespace std;unsigned long long dis[MAXN][MAXN],w[MAXN],sum[MAXN];int num[MAXN];#define FZ(i,p)(dis[i-1][p]-w[p]+sum[p]*sum[p])...
2019-09-25 22:17:00 151
转载 一笔话问题
大哥博客https://blog.csdn.net/c20182030/article/details/52755880好骚啊转载于:https://www.cnblogs.com/Lamboofhome/p/11574767.html
2019-09-23 20:58:00 77
转载 sfa
#include <bits/stdc++.h>#define M 100005#define INF 100000;using namespace std;int x,y,i,cent,n,fa[M],que[M],t,ii,ans,a,s,m,j,nn,mins,vis;struct edge{ int u; int v; ...
2019-09-20 22:05:00 131
转载 牛奶
#include <bits/stdc++.h>#define M 100005using namespace std;int n,k,m,dis[M],i,ww,vis[M],dis2[M],num=0x3f,vis2[M],arr[100][100],xx,yy,vis3[M],nn;char x,y,ll;struct cmp{bool op...
2019-09-18 21:55:00 92
转载 asfsaf
#include <bits/stdc++.h>#define M 100005using namespace std;int n,k,m,dis[M],i,x,y,ww,vis[M];struct edge{ int v,w; edge(){} edge(int a,int b){v=a,w=b;}};vector ...
2019-09-17 21:56:00 149
转载 练题宝典
https://vjudge.net/contest/325000转载于:https://www.cnblogs.com/Lamboofhome/p/11536997.html
2019-09-17 20:40:00 168
转载 HDU 3530
新手理解(可能有理解错误的地方,请指教,嘿嘿)#include<stdio.h>#include<string.h>#include<math.h>#include<iostream>#include<algorithm>#include<queue>#include<sta...
2019-09-16 21:51:00 106
转载 fesf
#include<bits/stdc++.h>#define M 1000005using namespace std;int a,n,m,k,i,p[M],mintail,minhead,maxtail,maxhead,ans,trmp;struct PP{ int viluee; int markee;}maxque[M],minque[M];int main(){ wh...
2019-09-11 21:58:00 130
转载 雪花
/* 雪花 */<script type="text/javascript">(function($){ $.fn.snow = function(options){ var $flake = $('<div id="snowbox" />').css({'position': 'absolute','z-index':'9999', 'top': '...
2019-09-08 21:56:00 115
转载 单调数列
/*鼠标跟随效果*/<style type="text/css"> .draw { position: fixed; width: 1px; line-height: 1px; pointer-events: none; } @keyframes floatOne...
2019-09-08 21:54:00 61
转载 鼠标跟随特效
/*鼠标跟随效果*/<style type="text/css"> .draw { position: fixed; width: 1px; line-height: 1px; pointer-events: none; } @keyframes floatOne {...
2019-09-08 21:51:00 170
转载 线段树
大佬的理解https://www.cnblogs.com/TheRoadToTheGold/p/6254255.html含义:二叉树的变异升级(节点存储黑科技)运用:到时候在说(目前不清楚)变异二叉树的建树代码:struct node { int l,r,黑科技;}tree[M];void setree(int l,int r,in...
2019-08-21 13:27:00 77
转载 最短路
DJ算法:基本概念; 通过松弛每一个点(当前距离最小的点)的距离来达到最短距离。 不过不能解决有负权边的问题(会无线循环)。时间复杂度;O(n^2); (循环N次 每次在寻找N次的最小点 ,每次更新相邻点的时间忽略不计) 代码://vis【】检查是否到达过这个点,dis为到达每个点的距离 void djj(int s){ me...
2019-08-19 09:17:00 72
转载 图的储存
邻接矩阵arr【a】【b】 记录a到b是否有边。(不好带权值)代码:邻接边以边的方式。(可以带权值什么的,通用这个)代码:注意:myz【a】 a是每条边的编号,说以push_back(b)b不是a,b可以带其他东西;结构体edge,是边的情况,不用数组保存,用vector的mzy保存。重载符的格式要记清楚, 特别是const edge &a...
2019-08-18 17:00:00 71
转载 DP
简单理解:就是一层推倒下一层 (每一层最优)代码格式return { xxx(dp(),dp()};for()dp【】=xxx(dp(),dp();转载于:https://www.cnblogs.com/Lamboofhome/p/11372947.html...
2019-08-18 16:49:00 79
转载 函数
注意:递归 地推一般的函数每一层都要有返回值.DFS BFS用void 最后一层用返回就行了转载于:https://www.cnblogs.com/Lamboofhome/p/11369917.html
2019-08-17 19:05:00 90
转载 心在哪儿
怜惜枯萎的枫叶,看着她喜爱这一切时,他怎么也无法按捺自己的心了。 这个场景多么的相似啊,他珍藏在心坎上的那画面再次重新上演了一遍,教他迷失了方向。 苏瑾瑜被他的举动吓到了,呆呆的桎梏在他的胸前,双手依旧垂在半空之中。 她懂他说的话,如何她才不会伤心,如何她才会一点都不在乎呢,她苦笑了几声,双手这才环在他的腰上,柔声说道,“心在这儿便好,你是帝王,是天下人的皇上。渺小的我,能够住进
2014-04-28 16:08:46 354
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人