练习专区

今天的一小步就是明天的一大步
Problem 1531 两直线的交点
Accepted: 1   Total Submit: 4
Time Limit: 1000ms   Memory Limit: 30720KB
Description
给你两条直线,请你编程计算这两条直线的交点.
Input
先输入一个n,表示有n个案例。每个案例有八个数据x1、y1、x2、y2、x3、y3、x4、y4分别表示两条直线l、m上的点,前两个点在l上,后两个点在m上。
Output
如果有交点就输出交点,没有交点就输出“Can‘t find.”。结果名保留小数点1位
Sample Input
2
0 0 3 0 1 1 2 2
3 0 5 0 5 1 6 1
Sample Output
(0.0,0.0)
Can‘t find.
Hint
提交     返回