数学题。
题意是问你能不能逃脱。
当V1的 角速度大于 V2的时候,可以一直保持 V1,O(圆心),V2 三点一线。
跑到一定距离,角速度小于的时候,就以三点一线为初始状态直接跑直线。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-07-19 02:36:55
阅读次数:
188
数序问题。
题意是说 一个数列 a1,a2,……ai,……an; x=i , y = ai;找两个点斜率绝对值!!最大。
第一次没找绝对值,……认真读题。。。
x 每次加1 。 只需要找 相邻的 ai 是否是最大就好了。
#include
#include
#include
#include
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-07-19 02:25:35
阅读次数:
168
Coder
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2778 Accepted Submission(s): 1104
Problem Description
In mathematics a...
分类:
其他好文 时间:
2014-07-08 19:47:57
阅读次数:
231
Joseph环,这次模固定是2.如果不是固定模2,那么一般时间效率是O(n),但是这次因为固定模2,那么可以利用2的特殊性,把时间效率提高到O(1)。
规律可以看下图:
具体详细解析请看大师Knuth的Concrete mathematics。
补上纯粹利用位运算写的程序:
int substraHighBit(int y)
{
int x = y;
x = x | (...
分类:
其他好文 时间:
2014-06-14 00:28:32
阅读次数:
287
Background
Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:
其他好文 时间:
2014-05-26 04:31:34
阅读次数:
234
Discrete.Mathematics.and.Its.Applications这本书是离散数学的经典书籍,好好读一读,系统化一下自己的知识。
书本上会有介绍很多杰出的数学家,如高斯, 这样名垂青史的大人物。
不过读到263页的时候被一个年轻的脸孔震惊到了,看起来还像个中国人。名字叫:TERENCE TAO
于是细读一下,越读越是震惊,然后网上一查,才知道,原来人家早已大名鼎鼎,不过是本...
分类:
其他好文 时间:
2014-05-09 06:21:45
阅读次数:
327
A fine property of the non-empty countable
dense-in-self set in the real lineZujin ZhangSchool of Mathematics and Computer
Science,GannanNormalUnivers...
分类:
其他好文 时间:
2014-05-02 17:05:10
阅读次数:
504
Abstract. In mathematics a Voronoi diagram is a
way of dividing space into a number of regions. A set of points, called seeds,
sites, or generators is...
分类:
其他好文 时间:
2014-05-01 09:46:54
阅读次数:
493