1.一个人总要走陌生的路,看陌生的风景,听陌生的歌,然后在某个不经意的瞬间,你会发现,原本是费尽心机想要忘记的事情真的就那么忘记了。 One is always on a strange road, watching strange scenery and listening to stran...
分类:
其他好文 时间:
2015-07-23 00:16:16
阅读次数:
233
题意:有n5可以坐1号电梯10s,但是坐2号只需要5s,所以有重边。(2)k=0时,不耗时间。(3)有多种路径可达同一楼层且权值相同,那么从本楼层到另一楼层有多种选择,有时可以不换电梯,有时需要换。比如到达5楼的有2条路径,权都是5,但是是两部不同的电梯1和2,此时有其他电梯可以从5到7楼,其中有一...
分类:
其他好文 时间:
2015-07-22 20:20:18
阅读次数:
197
在区间(0,100)。在恒大二阶导数0。f(x)有极小值。用的最低要求的一阶导数值点;#include#include#include#includeconst double eps=1e-6;double f(double x,double y){ return 6*pow(x,7)+8*p...
分类:
其他好文 时间:
2015-07-17 18:09:43
阅读次数:
193
A strange lift
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 14947 Accepted Submission(s): 5654
Problem Description
There is a str...
分类:
其他好文 时间:
2015-07-13 12:08:58
阅读次数:
134
题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1548A strange liftDescriptionThere is a strange lift.The lift can stop can at every floor as you want, a...
分类:
其他好文 时间:
2015-06-26 21:01:22
阅读次数:
98
题目大意:对于一个大于$1$的正整数$x$,定义$v(x)$为不超过$x$的最大质数,$u(x)$为大于$x$的最小质数。给定$n(n\le10^9)$,求:$$\sum_{i=2}^n\frac{1}{v(i)\cdot u(i)}$$多组数据,要求按最简分数形式输出。分析:对于任意两个相邻质数$...
分类:
其他好文 时间:
2015-06-25 22:39:34
阅读次数:
145
sys.setrecursionlimit(1<<64)Line 3: OverflowError: Python int too large to convert to C longmax: 2**64-1, (1<<64) - 1sys.setrecursionlimit(1<<31)Line ...
分类:
编程语言 时间:
2015-06-20 15:33:06
阅读次数:
160
最近在刷郏老大博客上的最短路专题【HDU】1548 A strange lift 基础最短路(或bfs) 1 //#define LOCAL 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn...
分类:
其他好文 时间:
2015-06-14 10:50:38
阅读次数:
217
Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 5154Accepted: 1793DescriptionLast years Chicago was full of gangster fights and strange murde...
分类:
其他好文 时间:
2015-06-10 14:04:19
阅读次数:
107
DescriptionSuppose we have n ropes of equal length and we want to use them to lift some heavy object. A tear-off weight t is associated to each rope, ...
分类:
其他好文 时间:
2015-06-08 21:06:32
阅读次数:
169