hackerearth may easy challenge


i dont know how to solve this problem,the only way i could think of is marking all the points on or under rectangles and finally counting all marked points.What is the correct way to solve this problem?Thank you. :slight_smile:
1 Like

Tumse na ho paega. :stuck_out_tongue:

4 Likes

why downwote :confused:

2 Likes

Is it an ongoing contest?

no it finished yesterday midnight

@ayushrocker92: use sweep line algorithm