题目传送门:POJ 1269 Intersecting Lines Description We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection because they are parallel, 2) intersect in…
class Fib(object): def __call__(self,n): a=[0,1] for i in range(n-2): an=a[-2]+a[-1] a.append(an) return a f = Fib()print f(10) class Fib(object): def __call__(self, num): a, b, L = 0, 1, [] for n in rang…
Line.h #pragma once //Microsoft Visual Studio 2015 Enterprise //根据两点式方法求直线,并求两条直线的交点 #include"BoundaryPoint.h" #include"Coordinates.h" class Line { public: Line GetLine(BoundaryPoint sourcePoint, BoundaryPoint endPoint); Line GetLine(C…