Skip to content

Commit a8c1d34

Browse files
committed
Runtime: 2938 ms (Top 61.69%) | Memory: 14.1 MB (Top 97.87%)
1 parent 57a22e3 commit a8c1d34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 2938 ms (Top 61.69%) | Memory: 14.1 MB (Top 97.87%)
12
class Solution:
23
def countPoints(self, points: List[List[int]], queries: List[List[int]]) -> List[int]:
3-
return [sum(math.sqrt((x0-x1)**2 + (y0-y1)**2) <= r for x1, y1 in points) for x0, y0, r in queries]
4+
return [sum(math.sqrt((x0-x1)**2 + (y0-y1)**2) <= r for x1, y1 in points) for x0, y0, r in queries]

0 commit comments

Comments
 (0)