Note: This article is available in Chinese only. 本文暂无英文版本。
View original
poj 1269 Intersecting Lines (计算几何)
Related
codeforces #329 div 2 B. Anton and Lines(几何)
B. Anton and Lines
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
The teacher gave Anton a large geometry homework, but he didn’t do it (as usual) as he participated in a regular round on Codeforces. In the task he was given a set of n lines defined by the equations y = k__i*x + b__i. It was necessary to determine whether there is at least one point of intersection of two of these lines, that lays strictly inside the strip between _x_1 < _x_2. In other words, is it true that there are1 ≤ i < j ≤ n and x’, y’, such that:
codeforces 560 C. Gerald's Hexagon (思维,几何)
题意:给定一个六边形的六条边的长,问能分割成多少个单位正三角形.
hdoj 2436 Collision Detection
Collision Detection # **Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1207 Accepted Submission(s): 367 **
hdu 4082 I Hou Yi's secret (计算几何)
http://acm.hust.edu.cn/vjudge/contest/view.action?cid=83295#problem/I
最多18个点,选3个点,能够成的三角形不超过1000个,O(n2)暴力就可以。
poj 2398 Toy Storage (计算几何,判断点和线段关系)
http://poj.org/problem?id=2398
题意大概是说将一个盒子用n个board分成n+1 部分
然后往里面放toy,给定盒子,board,和toy的坐标