We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d6da4 commit 67fcfd9Copy full SHA for 67fcfd9
1 file changed
live9/test93/문제3/백한결.py
@@ -0,0 +1,12 @@
1
+def solution(routes):
2
+ routes.sort(key=lambda x: x[1])
3
+
4
+ count = 0
5
+ camera = -30001
6
7
+ for i in range(len(routes)):
8
+ if routes[i][0] > camera:
9
+ count += 1
10
+ camera = routes[i][1]
11
12
+ return count
0 commit comments