( ̄▽ ̄)" //dijkstra算法, //只是有效边(即能从i楼到j楼)的边权都为1(代表次数1); //关于能否到达目标楼层b,只需判断最终lowtime[b]是否等于INF即可。 #include #include using namespace std; const int INF=10e...
分类:
其他好文 时间:
2016-02-18 01:14:32
阅读次数:
195
( ̄▽ ̄)" #include #include #include #include #include #include using namespace std; const int INF=10e7; const int MAXN=510; int f,n,m,w,s,e,t; int lc[MA...
分类:
其他好文 时间:
2016-02-18 01:11:14
阅读次数:
192
( ̄▽ ̄)" #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int INF=10e7; const in...
分类:
Web程序 时间:
2016-02-18 01:11:11
阅读次数:
225
boost模板库与线性表
Boost的安装
使用boost,首先需要进行的环境配置。
#include
#include
#include//区别
using namespace std;
void main()
{
boost::array myarray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
boost::array::itera...
分类:
编程语言 时间:
2016-02-18 00:07:34
阅读次数:
305
( ̄▽ ̄)" //dijkstra算法; //这题建邻接矩阵的时候有坑(先读入边后读入点),还有重边; #include #include using namespace std; const int INF=10e7; const int MAXN=2010; int k,minn; int co...
分类:
其他好文 时间:
2016-02-18 00:05:51
阅读次数:
212
找到规律模拟就可以了,用DFS模拟很简洁,用循环模拟比较直观(大概吧) 注意输入输出用%llu,1ULL<<64=0!被这几个小问题卡了好久 #include <cstdio> #include <algorithm> #include <cstring> using namespace std;
分类:
其他好文 时间:
2016-02-18 00:05:29
阅读次数:
248
很水的模拟题,拿数组搞就好了。 注意边界的地方不要算重。 #include <cstdio> #include <cstring> #include <algorithm> using namespace std; int N,T,M; int save[10000]; char str[1000]
分类:
其他好文 时间:
2016-02-18 00:02:17
阅读次数:
184
Information:Using javac 1.8.0_60 to compile java sourcesInformation:java: javacTask: 源发行版 1.6 需要目标发行版 1.6Information:java: Errors occurred while compi
分类:
其他好文 时间:
2016-02-18 00:01:09
阅读次数:
411
思路: 字典树模板题 #include <iostream> #include <cstring> #include <cstdio> #define MAX 500007 using namespace std; struct node { int e; struct node* next[26]
分类:
其他好文 时间:
2016-02-17 20:53:37
阅读次数:
241
线性代数,原理不讲了。。。 1 /* 用于求整数解得方程组. */ 2 3 #include <iostream> 4 #include <string> 5 #include <cmath> 6 using namespace std; 7 8 const int maxn = 105; 9 10
分类:
其他好文 时间:
2016-02-17 18:55:21
阅读次数:
185