1 class Solution: 2 def checkStraightLine(self, coordinates: List[List[int]]) -> bool: 3 (u, v), (p, q) = coordinates[: 2] 4 for x, y in coordinates: 5 if (x - u) * (y - q) != (x - p) * (y - v): 6 return False 7 return True
leetcode1232
猜你喜欢
转载自www.cnblogs.com/asenyang/p/11711171.html
今日推荐
周排行