File tree Expand file tree Collapse file tree 2 files changed +27
-10
lines changed
Expand file tree Collapse file tree 2 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 11---
22title : 1828. Statistics the number of a circle mid -point One question daily
3- date : ' 2024.01.01 0:00'
3+ date : " 2024.01.01 0:00"
44tags :
55 - - Python
66 - - answer
77 - - math
88abbrlink : 3277549c
9+ docId : chb8ee5s38v8gh751n9e5znj
910---
10- # topic:
1111
12+ # topic:
1213
1314[ 1828. Statistics the number of a circle mid -point] ( https://leetcode.cn/problems/queries-on-number-of-points-inside-a-circle/description/ )
1415
@@ -43,7 +44,6 @@ class Solution:
4344
4445Take a look at someone who can't understandpythonCode:
4546
46-
4747``` python
4848class Solution :
4949 def countPoints (self , points : List[List[int ]], queries : List[List[int ]]) -> List[int ]:
@@ -58,9 +58,9 @@ class Solution:
5858 idx2 = bisect_right(points, [right, inf])
5959
6060 for x, y in points[idx1: idx2 + 1 ]:
61- if (v - r <= y <= v + r and
61+ if (v - r <= y <= v + r and
6262 (x - u) * (x - u) + (y - v) * (y - v) <= r * r):
63-
63+
6464 res[i] += 1
6565
6666 return res
Original file line number Diff line number Diff line change 11{
22 "repo" : " InvolutionHell/involutionhell" ,
3- "generatedAt" : " 2025-11-25T03 :06:12.634Z " ,
3+ "generatedAt" : " 2025-11-26T03 :06:32.553Z " ,
44 "docsDir" : " app/docs" ,
5- "totalDocs" : 123 ,
5+ "totalDocs" : 124 ,
66 "results" : [
77 {
88 "docId" : " ue27z7z95yzw3lhhfj7nit1c" ,
21192119 }
21202120 ]
21212121 },
2122+ {
2123+ "docId" : " chb8ee5s38v8gh751n9e5znj" ,
2124+ "path" : " app/docs/CommunityShare/Leetcode/1828统计一个圆中点的数目_translated.md" ,
2125+ "contributorStats" : {
2126+ "114939201" : 1
2127+ },
2128+ "contributors" : [
2129+ {
2130+ "githubId" : " 114939201" ,
2131+ "contributions" : 1 ,
2132+ "lastContributedAt" : " 2025-11-26T03:00:05.000Z" ,
2133+ "login" : " longsizhuo" ,
2134+ "avatarUrl" : " https://avatars.githubusercontent.com/u/114939201?v=4" ,
2135+ "htmlUrl" : " https://github.com/longsizhuo"
2136+ }
2137+ ]
2138+ },
21222139 {
21232140 "docId" : " lzrh7ftq3kegsyx8gimonrfu" ,
21242141 "path" : " app/docs/CommunityShare/Leetcode/2241. Design an ATM Machine.md" ,
22252242 "docId" : " mxt0ux1zpbzph4nuxz51eyg7" ,
22262243 "path" : " app/docs/CommunityShare/Leetcode/46.全排列.md" ,
22272244 "contributorStats" : {
2228- "114939201" : 1
2245+ "114939201" : 2
22292246 },
22302247 "contributors" : [
22312248 {
22322249 "githubId" : " 114939201" ,
2233- "contributions" : 1 ,
2234- "lastContributedAt" : " 2025-11-25T03:00:08 .000Z" ,
2250+ "contributions" : 2 ,
2251+ "lastContributedAt" : " 2025-11-25T03:06:13 .000Z" ,
22352252 "login" : " longsizhuo" ,
22362253 "avatarUrl" : " https://avatars.githubusercontent.com/u/114939201?v=4" ,
22372254 "htmlUrl" : " https://github.com/longsizhuo"
You can’t perform that action at this time.
0 commit comments