码迷,mamicode.com
首页 >  
搜索关键字:point    ( 7079个结果
Copy List with Random Pointer leetcode java
题目:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep c....
分类:编程语言   时间:2014-07-24 10:00:33    阅读次数:310
Topcoder SRM 628 DIV 2
被自己蠢哭了。。。。 250-point problem 国际象棋棋盘上给出两个坐标,问象从一个走到另一个最少要几步。 黑格象只能走黑格,白格象只能走白格,只要判断两个坐标的颜色是否相同就能判断是否可达,观察棋盘可以发现坐标的奇偶性决定了格子的颜色;可达的情况下最多两步就能达到,所以只要判断格子是否在同一条斜线上就行了。 #include #include #include #incl...
分类:其他好文   时间:2014-07-23 21:00:45    阅读次数:225
北大ACM暑期培训课程目录(四)
本文出自:http://blog.csdn.net/svitter Computational Geometry 计算几何     ACM中基本是最麻烦的部分。     几何代码都要自己写,STL中也没有。基本上。     struct point     数乘,差乘,计算几何题目抄。一个数字由于误差积累造成大。     避免误差。     注意:        ...
分类:其他好文   时间:2014-07-23 20:59:58    阅读次数:164
openCV 和GDI画线效率对比
一、 由于项目需要,原来用GDI做的画线的功能,新的项目中考虑到垮平台的问题,打算用openCV来实现,故此做个效率对比。 二、 2点做一条线,来测试效率。 用了同样的画板大小---256*256的大小,函数通过参数输入,用GetTickCount来实现计时功能。 三、 GDI的主要循代码如下: void show_line(int line_num,int point_num)...
分类:其他好文   时间:2014-07-23 17:16:32    阅读次数:319
POJ 3090
Visible Lattice PointsTime Limit:1000MSMemory Limit:65536KTotal Submissions:5356Accepted:3136DescriptionA lattice point (x,y) in the first quadrant (x...
分类:其他好文   时间:2014-07-23 16:32:21    阅读次数:248
Apple设备中point,磅(pt),pixel的关系与转换,以及iPhone模拟器与真机的长度关系
查阅了好多资料都没有发现有相关的详细介绍,包括苹果官方文档,也是草草带过。后来是在一个介绍Macbook打印字体的博客中看到的,受到启发。 首先说明苹果设备绘图的长度单位可以认为是point,不是磅(pt)的意思。该point是一个逻辑概念,是独立于设备的。图1.不同分辨率屏幕显示1point...
分类:移动开发   时间:2014-07-23 15:42:09    阅读次数:297
Collider Collision Diff
Collision 中带有碰撞的信息,例如:速度和撞击到的点 void OnCollisionEnter2D(Collision2D coll) { foreach(ContactPoint contact in coll.contacts) { contact.point;// } }Collid...
分类:其他好文   时间:2014-07-23 12:59:56    阅读次数:209
弹出菜单
#import @interface DPopoverView : UIView+ (void)showPopoverAtPoint:(CGPoint)point inView:(UIView *)view withContentView:(UIView *)cView;- (void)showPo...
分类:其他好文   时间:2014-07-23 12:42:36    阅读次数:264
C++の友元の例
#include #include using namespace std; class Point { public: Point(double xx,double yy) { x=xx; y=yy; }; void Getxy(); ...
分类:编程语言   时间:2014-07-23 12:25:17    阅读次数:221
TopCoder SRM 628 DIV 2
250-point problemProblem StatementJanusz is learning how to play chess. He is using the standard chessboard with 8 rows and 8 columns. Both the rows a...
分类:其他好文   时间:2014-07-22 23:21:17    阅读次数:348
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!