题目链接http://acm.hdu.edu.cn/showproblem.php?pid=1548题意:电梯每层有一个数,例如第n层有个数k,那么这一层只能上k层或下k层,但是不能低于一层或高于n层,给定起点与终点,要求出最少要按几次键我的思路:这题可以用bfs或者用最短路(dijsktra)bf...
分类:
其他好文 时间:
2014-08-15 12:30:18
阅读次数:
205
恭喜福州大学杨楠获得[BestCoder Round #4]冠军(iPad Mini一部) 《BestCoder用户手册》下载A strange liftTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/O...
分类:
其他好文 时间:
2014-08-14 23:22:56
阅读次数:
319
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1548题目大意:升降电梯,先给出n层楼,然后给出起始的位置,即使输出从A楼道B楼的最短时间。注意的几点(1)每次按一下,只能表示上或者是下,然后根据输入的看是上几层或者是下几层。(2)注意不能到底不存在的...
分类:
其他好文 时间:
2014-08-14 20:13:19
阅读次数:
211
Questa societ che aveva iniziato piccola ben presto tr . Additionally, when constructing scaffolding, netting and/or guard rails may be used for extra...
分类:
其他好文 时间:
2014-08-14 13:49:58
阅读次数:
329
Added here is the fact that even the professional workmen are prone to face this sort of danger any time during the construction process. However, lit...
分类:
其他好文 时间:
2014-08-14 13:32:38
阅读次数:
285
A strange lift
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11649 Accepted Submission(s): 4419
Problem Description
There is a s...
分类:
其他好文 时间:
2014-08-14 10:57:58
阅读次数:
252
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1548题目意思:给出 n 个 floor 你,每个floor 有一个数k,按下它可以到达 floor + k 或者 floor - k的位置。问从floor A 到 floor B 最少的按lift 次数...
分类:
其他好文 时间:
2014-08-12 00:31:23
阅读次数:
122
1 #include 2 #include 3 #include 4 #include 5 #define M 205 6 #define INF 0x3f3f3f3f 7 using namespace std; 8 9 int map[M][M];10 int d[M], vis[M];11.....
分类:
其他好文 时间:
2014-08-11 14:57:22
阅读次数:
276
S-TreesA Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function . Each path of the S-tree begins at the root n.....
分类:
其他好文 时间:
2014-08-10 18:11:00
阅读次数:
415
Strange Billboard
Time Limit: 2 Seconds
Memory Limit: 65536 KB
The marketing and public-relations department of the Czech Technical University has designed a new reconfigurable mechanical Fli...
分类:
其他好文 时间:
2014-08-10 01:49:09
阅读次数:
326