码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
HDU 1548 A strange lift(dij+邻接矩阵)
( ̄▽ ̄)" //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
POJ 3259 Wormholes(SPFA+邻接表)
( ̄▽ ̄)" #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
POJ 1258 Agri-Net(Prim)
( ̄▽ ̄)" #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
【C/C++学院】0903-Boost/线性表/哈希存储
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
POJ 2387 Til the Cows Come Home(dij+邻接矩阵)
( ̄▽ ̄)" //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
ACdream1187-Rational Number Tree-模拟/找规律
找到规律模拟就可以了,用DFS模拟很简洁,用循环模拟比较直观(大概吧) 注意输入输出用%llu,1ULL<<64=0!被这几个小问题卡了好久 #include <cstdio> #include <algorithm> #include <cstring> using namespace std;
分类:其他好文   时间:2016-02-18 00:05:29    阅读次数:248
UVALive5870-Smooth Visualization-模拟水题
很水的模拟题,拿数组搞就好了。 注意边界的地方不要算重。 #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
IntilliJ Idea 使用中的问题与解决方案
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
hdu-1247
思路: 字典树模板题 #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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!