
几何
文章平均质量分 72
HelloWorld10086
追随大神的脚步
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Uva 10112 Myacm Triangles
Problem B: Myacm Triangles Source file: triangle.{c, cpp, java, pas} Input file: triangle.in Output file: triangle.out There has been considerable archeological work o原创 2014-07-20 16:02:15 · 858 阅读 · 0 评论 -
Uva 579 ClockHands
ClockHands The medieval interest in mechanical contrivances is well illustrated by the development of the mechanical clock, the oldest of which is driven by weights and controlled by a v原创 2014-07-20 15:35:06 · 936 阅读 · 0 评论 -
Uva 10387 Billiard
C - Billiard Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu SubmitStatus Description In a billiard table with horizontal side a inches and vertical side b inches, a原创 2014-07-20 15:52:37 · 845 阅读 · 0 评论 -
Uva 375 Inscribed Circles and Isosceles Triangles
Inscribed Circles and Isosceles Triangles Given two real numbers Bthe width of the base of an isosceles triangle in inches Hthe altitude of the same isosceles triangle in inches Comput原创 2014-07-20 15:40:31 · 842 阅读 · 0 评论 -
HDU 4998 Rotate (二维图形几何变换)
Rotate Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 297 Accepted Submission(s): 151 Special Judge Problem Description Noting i原创 2014-09-14 19:43:07 · 912 阅读 · 0 评论 -
FZU 2148 Moon Game(暴力+几何)
题目大意: 给出n个点,判断可以组成多少个凸四边形。 解题思路: 因为n很小,所以直接暴力,判断是否为凸四边形的方法是: 如果4个点中存在某个点D,Sabd + Sacd + Sbcd = Sabc,则说明是凹四边形。 注意这里有个坑点,因为枚举出的每个点,都有可能为内心,所以4种情况都要判断。 #include #include #include using namespa原创 2014-10-26 21:21:32 · 735 阅读 · 0 评论 -
FZU - 2035 Axial symmetry(几何+暴力)
题意:顺时针或逆时针给定一些点,判断该n边形是否对称。 思路:由于点是顺逆时或逆时针针输入,所以可以把每个点和每条边中点按顺序保存, 然后对称轴必然由i,i + n组成,枚举对称轴 对称轴有4种情况, (1)对称轴垂直于x轴,要判断,每组对称点的x值是否相等,以及他们的中点是否等于对称轴。 (2)对称轴垂直于y轴,要判断,每组对称点的y值是否相等,以及他们的中点是否等于对称轴。 (原创 2014-11-04 21:09:26 · 768 阅读 · 0 评论 -
FZU - 2110 Star(几何)
题目大意:给出n个点的坐标(整数),选3个点组成三角形问能形成多少个锐角三角形 解析:直接暴力枚举,3个for循环,如果能构成锐角三角形的条件是,假设三条边为a,b,c,且c为最大边如果 a^2+b^2 > c^2这满足锐角三角形原创 2014-11-24 15:34:42 · 685 阅读 · 0 评论 -
hdu 5365 Run(判断正方形个数)
题意: 给你一些坐标,都是整数,求由整数点构成的正三角形,正方形,正五边形,正六边形的数目。 题解: 地球人都知道整数坐标构不成正三角形,正五边形和正六边形的。 所以呢这道题直接暴力,求正四边形的个数,这里判断是否是正四边形。 至于如何判断正方形,枚举四个点,算出四条边,两条对角线。 判断四条边是否相等,两条对角线是否等于x∗2√x*\sqrt{2} mymy code原创 2015-08-10 16:42:26 · 1085 阅读 · 0 评论