https://www.acmicpc.net/problem/3392


스위핑이랑 세그트리 써야하는건 알고 있는데 잘 안풀림..

알거같은데 모르겠는 느낌이라 답 보긴 좀 그래서 힌트좀 주라