摘要:
题目意思:给定四个点,前两个点确定一条直线,后两个点确定一条直线,判断两条直线的位置关系;思路: 两条直线的位置关系分为三种情况: 1.重合:判断方法:((p1-q1)^(p2-q1))==0&&((p1-q2)^(p2-q2))==0 2.平行:判断方法:(p1-p2).x*(q1-q2).y... 阅读全文
posted @ 2014-08-19 23:39
coding_yuan
阅读(213)
评论(0)
推荐(0)
摘要:
SegmentsTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 9564 Accepted: 2943 DescriptionGiven n segments in the two dimensional space, write... 阅读全文
posted @ 2014-08-19 16:53
coding_yuan
阅读(120)
评论(0)
推荐(0)
摘要:
Toy StorageTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 3953 Accepted: 2334 DescriptionMom and dad have a problem: their child, Reza, ne... 阅读全文
posted @ 2014-08-19 00:49
coding_yuan
阅读(144)
评论(0)
推荐(0)