Description
Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.
It orders two arms of negligible weight and each arm's length...
分类:
其他好文 时间:
2014-07-28 16:14:46
阅读次数:
244
http://acm.hdu.edu.cn/showproblem.php?pid=1548
A strange lift
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11341 Accepted Submission...
分类:
其他好文 时间:
2014-07-26 02:28:36
阅读次数:
236
A strange lift
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 11341 Accepted Submission(s): 4289
Problem Description
There is a str...
分类:
其他好文 时间:
2014-07-26 02:28:26
阅读次数:
228
UVA10361 - Automatic Poetry(自动作诗机)A Schuttelreim seems to be a typical German invention. The funny thing about this strange type of poetry is that if ...
分类:
其他好文 时间:
2014-07-24 10:20:13
阅读次数:
232
题目大意: 电梯有两个选项向上或向下,每层楼有一个参数ki,代表电梯可以再该楼层的基础上向上或向下移动ki层,限制条件是向上不能超过楼层总数n,向下不能少于一。输入总层数n和当前所在层数以及目标层数,然后是n个数分别代表第i层的移动范围。输出最少移动次数,若不可达,输出-1.解题思路: 1.用D.....
分类:
其他好文 时间:
2014-07-24 10:12:53
阅读次数:
265
A strange liftDescriptionThere 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....
分类:
Web程序 时间:
2014-07-22 22:36:54
阅读次数:
329
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10307
Accepted: 6377
Description
Gigel has a strange "balance" and he wants to poise it. Actually, ...
分类:
其他好文 时间:
2014-07-21 23:27:52
阅读次数:
235
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10299
Accepted: 6372
Description
Gigel has a strange "balance" and he wants to poise it. Actually, ...
分类:
其他好文 时间:
2014-07-19 23:46:59
阅读次数:
381
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 10241
Accepted: 6330
Description
Gigel has a strange "balance" and he wants to poise it. Actually, ...
分类:
其他好文 时间:
2014-07-15 22:42:22
阅读次数:
272
点击打开链接
类似A strange lift的写法,之前一直返回RE,感觉有点不科学,数据较小。后来看discuss,居然输入还要考虑去重。
题意:略;
解析:最短路问题,但是有两种情况,因此需要根据具体情况来考虑。我采用的是构造两张图,然后在使用Dijkstra中将dis与cost放在一个结构体中,便于理解。其它就是A strange lift的一点变形
#include
#inc...
分类:
其他好文 时间:
2014-07-14 13:13:17
阅读次数:
288