입력: n
events 리스트 생성
FOR n번 반복
s, t, b 입력
events에 (s, +b) 추가
events에 (t, -b) 추가
ENDFOR
events 시간 기준 정렬
cur = 0
ans = 0
FOR events 하나씩
cur += 변화량
ans = max(ans, cur)
ENDFOR
ans 출력
To embed this project on your website, copy the following code and paste it into your website's HTML: