题意:给出n个电梯,每个电梯的运行时间,每个电梯只能在相应的楼层停靠,而且没有楼梯,再给出想去的楼层,问从0层能否到达想去的楼层,求到达的最短时间建图还是没有建出来---因为n 2 #include 3 #include 4 #include 5 #include 6 #include...
分类:
其他好文 时间:
2015-05-10 18:49:27
阅读次数:
155
DescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 2 #include 3 #include 4 #include 5...
分类:
其他好文 时间:
2015-04-15 21:20:22
阅读次数:
206
题意:给出一个n个点的有向图,任意两个点之间都相互到达,求任意两点间最短距离的平均值因为n很小,所以可以用floyd 建立出图,然后用floyd,统计d[][]不为0且不为INF的边的和及条数,就可以了做的时候统计边的时候没有加不为0这个条件,改了好久= = 1 #include 2 #incl.....
分类:
其他好文 时间:
2015-04-13 00:09:36
阅读次数:
237
企业就是你的船(Companyisyourship)跳槽不如卧槽(notjob-hoppingisbetterthanjob-hopping)大家有机会读读吧,很有价值,特别适合做技术方面的人员,看了这二本书,技术人员一定会静下心下,努力学习工作吧,还有就是为什么推荐这二本书,因为前阵子有一个出版社问我,能不能写..
分类:
其他好文 时间:
2015-04-11 21:01:57
阅读次数:
180
题目链接:UVA - 10801题意描述:有n个电梯,给出每个电梯可以到达的楼层位置和电梯上升或下降一层楼的时间,另外在同一层楼换乘不同的电梯需要等待一分钟,问从楼层位置0(即地面)到第k层楼需要的最短时间是多少。算法分析:由于n很小(n 2 #include 3 #include 4 #inclu...
分类:
其他好文 时间:
2015-04-09 21:48:33
阅读次数:
164
一个电梯有n层,每一层有一个数k[i],和2个按钮,UP和DOWN,表示从这一层可以到达i+k[i] 或i-k[i] .给出a,b,问从a到b 最少需要按多少下按钮。直接bfs. 1 #include 2 #include 3 #include 4 using namespace std; 5 co...
分类:
其他好文 时间:
2015-04-05 15:58:51
阅读次数:
205
在评估模型的预测能力上,提升图 (lift chart)和增益图(gain chart)是一种非常有用的图形表达方式。在SPSS中,一个典型的增益图如下所示:在今天这篇博文中,博主会和大家一起探讨制作增益图的逻辑以及如何解释增益图和提升图。以下博文中,我们会运用一个直邮公司的例子来为大家讲解。假设在...
分类:
其他好文 时间:
2015-04-03 19:18:43
阅读次数:
2385
简单的广搜,一开始没有把re初始化,wa了好多次
#include
#include
#include
using namespace std;
int n,a,b;
int mapp[200+5];
int visit[200+5];
int re=-1;
struct stu
{
int s,t;
};
void bfs(int h)
{
stu x,y;
queueroot;
x....
分类:
其他好文 时间:
2015-03-31 22:30:11
阅读次数:
186
Problem Description
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor i,if you press the button "UP" , you will go u...
分类:
编程语言 时间:
2015-03-28 15:47:08
阅读次数:
262
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1548There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 ...
分类:
其他好文 时间:
2015-03-17 13:54:16
阅读次数:
194