create dev channel

This commit is contained in:
2025-05-07 04:44:30 +09:00
parent 603fca2b20
commit 16a8e59450
426 changed files with 643 additions and 36 deletions

13
zeta/py/completed/1931.py Normal file
View File

@@ -0,0 +1,13 @@
N = int(input())
I = [tuple(map(int, input().split())) for _ in range(N)]
I.sort(key=lambda x: (x[1], x[0]))
last = 0
cnt = 0
for i in range(N):
if last <= I[i][0]:
last = I[i][1]
cnt += 1
print(cnt)