摘要: 来源poj 2398 Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza a rectangular 阅读全文
posted @ 2018-08-05 18:07 一无所知小白龙 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1.求解点与直线的关系,判断在直线哪一边 int direction(point p1,point p2,point p3)//p1是向量起点,p2是终点,p3是判断点, 0则在左边<0在右侧 { return (p1.x p3.x) (p2.y p3.y) (p1.y p3.y) (p2.x p3 阅读全文
posted @ 2018-08-05 16:42 一无所知小白龙 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 来源 poj 2318 Calculate 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 to 阅读全文
posted @ 2018-08-05 16:41 一无所知小白龙 阅读(233) 评论(0) 推荐(0) 编辑