2013年11月13日

poj 3304 判断是否存在一条直线与所有线段相交

摘要: SegmentsTime Limit:1000MSMemory Limit:65536KTotal Submissions:8579Accepted:2608DescriptionGivennsegments in the two dimensional space, write a program, which determines if there exists a line such that after projecting these segments on it, all projected segments have at least one point in common.In 阅读全文

posted @ 2013-11-13 16:45 雄.. 阅读(294) 评论(0) 推荐(0)

2013年11月12日

poj 2318 向量的叉积二分查找

摘要: TOYSTime Limit:2000MSMemory Limit:65536KTotal Submissions:9350Accepted:4451DescriptionCalculate the number of toys that land in each bin of a partitioned toy box. Mom and dad have a problem - their child John never puts his toys away when he is finished playing with them. They gave John a rectangula 阅读全文

posted @ 2013-11-12 19:48 雄.. 阅读(249) 评论(0) 推荐(0)

poj 3608 凸包间的最小距离

摘要: Bridge Across IslandsTime Limit:1000MSMemory Limit:65536KTotal Submissions:7632Accepted:2263Special JudgeDescriptionThousands of thousands years ago there was a small kingdom located in the middle of the Pacific Ocean. The territory of the kingdom consists two separated islands. Due to the impact of 阅读全文

posted @ 2013-11-12 17:42 雄.. 阅读(483) 评论(0) 推荐(0)

2013年11月5日

LA 4728 旋转卡壳算法求凸包的最大直径

摘要: #include#include#include#include#includeusing namespace std;struct Point { int x, y; Point(int x=0, int y=0):x(x),y(y) { }};typedef Point Vector;Vecto... 阅读全文

posted @ 2013-11-05 20:12 雄.. 阅读(257) 评论(0) 推荐(0)

2013年10月27日

uva 12304点与直线与圆之间的关系

摘要: Problem E2D Geometry 110 in 1!This is a collection of 110 (in binary) 2D geometry problems.CircumscribedCircle x1 y1 x2 y2 x3 y3Find out the circumscribed circle of triangle (x1,y1)-(x2,y2)-(x3,y3). These three points are guaranteed to be non-collinear. The circle is formatted as (x,y,r) where (x,y) 阅读全文

posted @ 2013-10-27 01:37 雄.. 阅读(365) 评论(0) 推荐(0)

2013年10月23日

uva 11798 相对运动的最小最大距离

摘要: CDog DistanceInputStandard InputOutputStandard OutputTwo dogs, Ranga and Banga, are running randomly following two different paths. They both run forT... 阅读全文

posted @ 2013-10-23 21:08 雄.. 阅读(326) 评论(0) 推荐(0)

2013年10月21日

LA 3263 平面划分

摘要: Little Joey invented a scrabble machine that he called Euler, after the great mathematician. In his primary school Joey heard about the nice story of how Euler started the study about graphs. The problem in that story was - let me remind you - to draw a graph on a paper without lifting your pen, and 阅读全文

posted @ 2013-10-21 21:30 雄.. 阅读(291) 评论(0) 推荐(0)

uva 11178二维几何(点与直线、点积叉积)

摘要: Problem D Morley’s Theorem Input:Standard InputOutput:Standard OutputMorley’s theorem states that that the lines trisecting the angles of an arbitrary plane triangle meet at the vertices of an equilateral triangle. For example in the figure below the tri-sectors of angles A, B and C has intersected 阅读全文

posted @ 2013-10-21 19:56 雄.. 阅读(316) 评论(0) 推荐(0)

2013年9月12日

hdu 4722 数位dp

摘要: Good NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 603Accepted Submission(s): 221 Problem DescriptionIf we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number. You are required t 阅读全文

posted @ 2013-09-12 15:46 雄.. 阅读(179) 评论(0) 推荐(0)

2013年9月4日

uva 10870 递推关系矩阵快速幂模

摘要: Recurrences Input:standard input Output:standard outputConsider recurrent functions of the following form:f(n) = a1f(n - 1) + a2f(n - 2) + a3f(n - 3) + ... + adf(n - d), for n > d. a1, a2, ..., ad- arbitrary constants.A famous example is the Fibonacci sequence, defined as: f(1) = 1, f(2) = 1, f(n 阅读全文

posted @ 2013-09-04 15:52 雄.. 阅读(221) 评论(0) 推荐(0)

导航