暴力求解法
编程高手在此
这个作者很懒,什么都没留下…
展开
-
uva 10167 Birthday Cake
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=19398题意:给出一些点的坐标,找一条过原点的直线把这些点平分(注意不能切到cherries)#include#includeusing namespace std;#define f(x,y) (A*x+B*y)struct Point{ int x原创 2015-12-03 21:57:16 · 426 阅读 · 0 评论 -
Pocket Cube
Pocket Cube is a 3-D combination puzzle. It is a 2 × 2 × 2 cube, which means it is constructed by 8 mini-cubes. For a combination of 2 × 2 mini-cubes which sharing a whole cube face, you can twist i原创 2016-03-01 21:25:30 · 980 阅读 · 0 评论