Sweep Line Algorithm Codeforces